diff --git a/confparser/space.cpp b/confparser/space.cpp index 9c1afef..4aa91a6 100755 --- a/confparser/space.cpp +++ b/confparser/space.cpp @@ -489,6 +489,18 @@ return AddSpace(name); } +void Space::RemoveSpace(size_t child_index) +{ + if( child_index < spaces.size() ) + { + delete spaces[child_index]; + spaces.erase(spaces.begin() + child_index); + } +} + + + + // in lists we don't use default values bool Space::ListText(const wchar_t * name, std::vector & list) diff --git a/confparser/space.h b/confparser/space.h index 62fc30e..46efa8b 100755 --- a/confparser/space.h +++ b/confparser/space.h @@ -239,6 +239,10 @@ public: Space & FindAddSpace(const wchar_t * name); Space & FindAddSpace(const std::wstring & name); + + void RemoveSpace(size_t child_index); + + /* * *