Added TreeTablePath::RemoveLastComponent().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d8c41ef38f
commit
20e4297b61
@ -66,6 +66,18 @@ TreeTablePath::AddComponent(int32 childIndex)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int32
|
||||
TreeTablePath::RemoveLastComponent()
|
||||
{
|
||||
if (fComponents.empty())
|
||||
return -1;
|
||||
|
||||
int32 index = fComponents.back();
|
||||
fComponents.pop_back();
|
||||
return index;
|
||||
}
|
||||
|
||||
void
|
||||
TreeTablePath::Clear()
|
||||
{
|
||||
|
@ -29,6 +29,7 @@ public:
|
||||
~TreeTablePath();
|
||||
|
||||
bool AddComponent(int32 childIndex);
|
||||
int32 RemoveLastComponent();
|
||||
void Clear();
|
||||
|
||||
int32 CountComponents() const;
|
||||
|
Loading…
Reference in New Issue
Block a user