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:
parent
29d179963e
commit
a233f8d4df
|
@ -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)
|
||||
|
|
|
@ -239,6 +239,10 @@ public:
|
|||
Space & FindAddSpace(const wchar_t * name);
|
||||
Space & FindAddSpace(const std::wstring & name);
|
||||
|
||||
|
||||
void RemoveSpace(size_t child_index);
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue