Loading backends/yaml/yaml.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -93,7 +93,8 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){ cystack->prevel=ystack; ystack=cystack; ystack->anchor=key; key.clear(); key=value; value.clear(); }break; case YAML_MAPPING_END_EVENT:{ Loading @@ -119,6 +120,7 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){ case YAML_SEQUENCE_END_EVENT:{ seq=false; key=value; pos=0; value.clear(); }break; Loading @@ -137,7 +139,6 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){ conf->setValue(ckey,pos,value.c_str()); value.clear(); if(!seq){ pos=0; key.clear(); }else{ ++pos; Loading Loading
backends/yaml/yaml.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -93,7 +93,8 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){ cystack->prevel=ystack; ystack=cystack; ystack->anchor=key; key.clear(); key=value; value.clear(); }break; case YAML_MAPPING_END_EVENT:{ Loading @@ -119,6 +120,7 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){ case YAML_SEQUENCE_END_EVENT:{ seq=false; key=value; pos=0; value.clear(); }break; Loading @@ -137,7 +139,6 @@ void confplus::Yaml::loadConfig(const char *path,Config *conf){ conf->setValue(ckey,pos,value.c_str()); value.clear(); if(!seq){ pos=0; key.clear(); }else{ ++pos; Loading