summaryrefslogtreecommitdiffstats
path: root/include/plist
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2014-08-16 17:48:45 -0400
committerGravatar Nikias Bassen2014-09-20 00:10:46 +0200
commitb6c43e901c1ee3ded15261621be1aaa090dab984 (patch)
tree218257fc8751fc0fc979d292acd9162278cadcd7 /include/plist
parentccd6f05fe1e6cd5a1611b0df78974fa39869013d (diff)
downloadlibplist-b6c43e901c1ee3ded15261621be1aaa090dab984.tar.gz
libplist-b6c43e901c1ee3ded15261621be1aaa090dab984.tar.bz2
Added const to Array.GetSize(), and to 3 Node methods.
Diffstat (limited to 'include/plist')
-rw-r--r--include/plist/Array.h2
-rw-r--r--include/plist/Structure.h6
2 files changed, 4 insertions, 4 deletions
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 :
44 void Insert(Node* node, unsigned int pos); 44 void Insert(Node* node, unsigned int pos);
45 void Remove(Node* node); 45 void Remove(Node* node);
46 void Remove(unsigned int pos); 46 void Remove(unsigned int pos);
47 unsigned int GetNodeIndex(Node* node); 47 unsigned int GetNodeIndex(Node* node) const;
48 48
49private : 49private :
50 std::vector<Node*> _array; 50 std::vector<Node*> _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
34public : 34public :
35 virtual ~Structure(); 35 virtual ~Structure();
36 36
37 uint32_t GetSize(); 37 uint32_t GetSize() const;
38 38
39 std::string ToXml(); 39 std::string ToXml() const;
40 std::vector<char> ToBin(); 40 std::vector<char> ToBin() const;
41 41
42 virtual void Remove(Node* node) = 0; 42 virtual void Remove(Node* node) = 0;
43 43