From b6c43e901c1ee3ded15261621be1aaa090dab984 Mon Sep 17 00:00:00 2001 From: Aaron Burghardt Date: Sat, 16 Aug 2014 17:48:45 -0400 Subject: Added const to Array.GetSize(), and to 3 Node methods. --- src/Array.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Array.cpp') 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) _array.erase(it); } -unsigned int Array::GetNodeIndex(Node* node) +unsigned int Array::GetNodeIndex(Node* node) const { - std::vector::iterator it = std::find(_array.begin(), _array.end(), node); + std::vector::const_iterator it = std::find(_array.begin(), _array.end(), node); return std::distance (_array.begin(), it); } -- cgit v1.1-32-gdbae