added: to Space:

void RemoveSpace(size_t child_index)


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@384 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2012-02-14 20:34:37 +00:00
parent 29d179963e
commit a233f8d4df
2 changed files with 16 additions and 0 deletions

View File

@ -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<std::wstring> & list)

View File

@ -239,6 +239,10 @@ public:
Space & FindAddSpace(const wchar_t * name);
Space & FindAddSpace(const std::wstring & name);
void RemoveSpace(size_t child_index);
/*
*
*