mirror of
https://github.com/libimobiledevice/libplist
synced 2026-06-08 15:29:34 +00:00
Added const to Array.GetSize(), and to 3 Node methods.
This commit is contained in:
committed by
Nikias Bassen
parent
ccd6f05fe1
commit
b6c43e901c
+2
-2
@@ -141,9 +141,9 @@ void Array::Remove(unsigned int pos)
|
||||
_array.erase(it);
|
||||
}
|
||||
|
||||
unsigned int Array::GetNodeIndex(Node* node)
|
||||
unsigned int Array::GetNodeIndex(Node* node) const
|
||||
{
|
||||
std::vector<Node*>::iterator it = std::find(_array.begin(), _array.end(), node);
|
||||
std::vector<Node*>::const_iterator it = std::find(_array.begin(), _array.end(), node);
|
||||
return std::distance (_array.begin(), it);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user