Loading src/conf.cpp +0 −6 Original line number Diff line number Diff line Loading @@ -366,12 +366,6 @@ int confplus::Config::getIntValue(confplus::Config::ConfigData* key, size_t pos) } void confplus::Config::setValue(confplus::Config::ConfigData *key, size_t pos, const std::string& value) { if (key->haveChild) { ConfException err; err[ConfException::Error] << "setValue it is a path not key"; throw err; } for (ConfigValue* cur = key->Value.get(); cur; cur = cur->_nextValue.get()) { if (cur->_Pos == pos) { cur->_Value = value; Loading src/conf.h +4 −8 Original line number Diff line number Diff line Loading @@ -73,14 +73,10 @@ namespace confplus { size_t Elements; bool haveChild=false; #ifndef MSVC union { #endif // MSVC std::unique_ptr<ConfigValue>Value; std::unique_ptr<ConfigData> Child; #ifndef MSVC }; #endif // MSVC std::unique_ptr<ConfigData> nextData=nullptr ; friend class Config; }; Loading Loading
src/conf.cpp +0 −6 Original line number Diff line number Diff line Loading @@ -366,12 +366,6 @@ int confplus::Config::getIntValue(confplus::Config::ConfigData* key, size_t pos) } void confplus::Config::setValue(confplus::Config::ConfigData *key, size_t pos, const std::string& value) { if (key->haveChild) { ConfException err; err[ConfException::Error] << "setValue it is a path not key"; throw err; } for (ConfigValue* cur = key->Value.get(); cur; cur = cur->_nextValue.get()) { if (cur->_Pos == pos) { cur->_Value = value; Loading
src/conf.h +4 −8 Original line number Diff line number Diff line Loading @@ -73,14 +73,10 @@ namespace confplus { size_t Elements; bool haveChild=false; #ifndef MSVC union { #endif // MSVC std::unique_ptr<ConfigValue>Value; std::unique_ptr<ConfigData> Child; #ifndef MSVC }; #endif // MSVC std::unique_ptr<ConfigData> nextData=nullptr ; friend class Config; }; Loading