Loading backends/yaml/yamlconf.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -140,9 +140,6 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){ } cname+=key; Config::ConfigData *ckey=conf->setKey(cname); std::cout << cname << "=" << value << std::endl; conf->setValue(ckey,pos,value); value.clear(); if(!seq){ Loading src/conf.cpp +4 −8 Original line number Diff line number Diff line Loading @@ -97,8 +97,7 @@ confplus::Config::ConfigData *confplus::Config::setKey(const std::string &key){ ConfigData *find=nullptr; std::unique_ptr<ConfigData> *root_ptr = &firstData; ConfigData* current_parent_node = nullptr; ConfigData* prevConf = nullptr; while(pos<=key.length()){ Loading @@ -110,9 +109,8 @@ confplus::Config::ConfigData *confplus::Config::setKey(const std::string &key){ find = existsdat(root_ptr->get(), childkey); if (!find) { if(current_parent_node) current_parent_node->haveChild=true; if(prevConf) prevConf->haveChild=true; std::unique_ptr<ConfigData>* current_ptr = root_ptr; Loading @@ -124,10 +122,8 @@ confplus::Config::ConfigData *confplus::Config::setKey(const std::string &key){ find = current_ptr->get(); find->Key = childkey; prevConf=find; } current_parent_node = find; root_ptr = &find->Child; } ++pos; Loading Loading
backends/yaml/yamlconf.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -140,9 +140,6 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){ } cname+=key; Config::ConfigData *ckey=conf->setKey(cname); std::cout << cname << "=" << value << std::endl; conf->setValue(ckey,pos,value); value.clear(); if(!seq){ Loading
src/conf.cpp +4 −8 Original line number Diff line number Diff line Loading @@ -97,8 +97,7 @@ confplus::Config::ConfigData *confplus::Config::setKey(const std::string &key){ ConfigData *find=nullptr; std::unique_ptr<ConfigData> *root_ptr = &firstData; ConfigData* current_parent_node = nullptr; ConfigData* prevConf = nullptr; while(pos<=key.length()){ Loading @@ -110,9 +109,8 @@ confplus::Config::ConfigData *confplus::Config::setKey(const std::string &key){ find = existsdat(root_ptr->get(), childkey); if (!find) { if(current_parent_node) current_parent_node->haveChild=true; if(prevConf) prevConf->haveChild=true; std::unique_ptr<ConfigData>* current_ptr = root_ptr; Loading @@ -124,10 +122,8 @@ confplus::Config::ConfigData *confplus::Config::setKey(const std::string &key){ find = current_ptr->get(); find->Key = childkey; prevConf=find; } current_parent_node = find; root_ptr = &find->Child; } ++pos; Loading