Added TreeTablePath::RemoveLastComponent().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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
|
void
|
||||||
TreeTablePath::Clear()
|
TreeTablePath::Clear()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ public:
|
|||||||
~TreeTablePath();
|
~TreeTablePath();
|
||||||
|
|
||||||
bool AddComponent(int32 childIndex);
|
bool AddComponent(int32 childIndex);
|
||||||
|
int32 RemoveLastComponent();
|
||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
int32 CountComponents() const;
|
int32 CountComponents() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user