added: to Space:
void RemoveSpace(const wchar_t * name); void RemoveSpace(const std::wstring & name); git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@399 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
0b66e6b807
commit
a2ed273090
|
@ -543,6 +543,31 @@ return AddSpace(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void Space::RemoveSpace(const wchar_t * name)
|
||||||
|
{
|
||||||
|
for(size_t i=0 ; i<spaces.size() ; )
|
||||||
|
{
|
||||||
|
if( spaces[i]->name == name )
|
||||||
|
RemoveSpace(i);
|
||||||
|
else
|
||||||
|
++i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Space::RemoveSpace(const std::wstring & name)
|
||||||
|
{
|
||||||
|
for(size_t i=0 ; i<spaces.size() ; )
|
||||||
|
{
|
||||||
|
if( spaces[i]->name == name )
|
||||||
|
RemoveSpace(i);
|
||||||
|
else
|
||||||
|
++i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Space::RemoveSpace(size_t child_index)
|
void Space::RemoveSpace(size_t child_index)
|
||||||
{
|
{
|
||||||
if( child_index < spaces.size() )
|
if( child_index < spaces.size() )
|
||||||
|
|
|
@ -246,7 +246,8 @@ public:
|
||||||
Space & FindAddSpace(const wchar_t * name);
|
Space & FindAddSpace(const wchar_t * name);
|
||||||
Space & FindAddSpace(const std::wstring & name);
|
Space & FindAddSpace(const std::wstring & name);
|
||||||
|
|
||||||
|
void RemoveSpace(const wchar_t * name);
|
||||||
|
void RemoveSpace(const std::wstring & name);
|
||||||
void RemoveSpace(size_t child_index);
|
void RemoveSpace(size_t child_index);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue