forked from lix-project/lix
libutil: Remove non-needed constructor
This commit is contained in:
parent
87c4f4a972
commit
55f06b6f30
|
@ -33,9 +33,9 @@ bool Config::set(const std::string & name, const std::string & value)
|
||||||
|
|
||||||
void Config::addSetting(AbstractSetting * setting)
|
void Config::addSetting(AbstractSetting * setting)
|
||||||
{
|
{
|
||||||
_settings.emplace(setting->name, Config::SettingData(false, setting));
|
_settings.emplace(setting->name, Config::SettingData{false, setting});
|
||||||
for (auto & alias : setting->aliases)
|
for (auto & alias : setting->aliases)
|
||||||
_settings.emplace(alias, Config::SettingData(true, setting));
|
_settings.emplace(alias, Config::SettingData{true, setting});
|
||||||
|
|
||||||
bool set = false;
|
bool set = false;
|
||||||
|
|
||||||
|
|
|
@ -148,9 +148,6 @@ public:
|
||||||
{
|
{
|
||||||
bool isAlias;
|
bool isAlias;
|
||||||
AbstractSetting * setting;
|
AbstractSetting * setting;
|
||||||
SettingData(bool isAlias, AbstractSetting * setting)
|
|
||||||
: isAlias(isAlias), setting(setting)
|
|
||||||
{ }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::map<std::string, SettingData> Settings;
|
typedef std::map<std::string, SettingData> Settings;
|
||||||
|
|
Loading…
Reference in a new issue