diff options
| author | 2014-08-16 17:48:45 -0400 | |
|---|---|---|
| committer | 2014-09-20 00:10:46 +0200 | |
| commit | b6c43e901c1ee3ded15261621be1aaa090dab984 (patch) | |
| tree | 218257fc8751fc0fc979d292acd9162278cadcd7 /src/Array.cpp | |
| parent | ccd6f05fe1e6cd5a1611b0df78974fa39869013d (diff) | |
| download | libplist-b6c43e901c1ee3ded15261621be1aaa090dab984.tar.gz libplist-b6c43e901c1ee3ded15261621be1aaa090dab984.tar.bz2 | |
Added const to Array.GetSize(), and to 3 Node methods.
Diffstat (limited to 'src/Array.cpp')
| -rw-r--r-- | src/Array.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Array.cpp b/src/Array.cpp index 3036476..7c38a69 100644 --- a/src/Array.cpp +++ b/src/Array.cpp | |||
| @@ -141,9 +141,9 @@ void Array::Remove(unsigned int pos) | |||
| 141 | _array.erase(it); | 141 | _array.erase(it); |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | unsigned int Array::GetNodeIndex(Node* node) | 144 | unsigned int Array::GetNodeIndex(Node* node) const |
| 145 | { | 145 | { |
| 146 | std::vector<Node*>::iterator it = std::find(_array.begin(), _array.end(), node); | 146 | std::vector<Node*>::const_iterator it = std::find(_array.begin(), _array.end(), node); |
| 147 | return std::distance (_array.begin(), it); | 147 | return std::distance (_array.begin(), it); |
| 148 | } | 148 | } |
| 149 | 149 | ||
