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. --- include/plist/Array.h | 2 +- include/plist/Structure.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/plist/Array.h b/include/plist/Array.h index 69ff26f..745b750 100644 --- a/include/plist/Array.h +++ b/include/plist/Array.h @@ -44,7 +44,7 @@ public : void Insert(Node* node, unsigned int pos); void Remove(Node* node); void Remove(unsigned int pos); - unsigned int GetNodeIndex(Node* node); + unsigned int GetNodeIndex(Node* node) const; private : std::vector _array; diff --git a/include/plist/Structure.h b/include/plist/Structure.h index 8e609da..eded8b2 100644 --- a/include/plist/Structure.h +++ b/include/plist/Structure.h @@ -34,10 +34,10 @@ class Structure : public Node public : virtual ~Structure(); - uint32_t GetSize(); + uint32_t GetSize() const; - std::string ToXml(); - std::vector ToBin(); + std::string ToXml() const; + std::vector ToBin() const; virtual void Remove(Node* node) = 0; -- cgit v1.1-32-gdbae