summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Array.cpp4
-rw-r--r--src/Structure.cpp6
2 files changed, 5 insertions, 5 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
144unsigned int Array::GetNodeIndex(Node* node) 144unsigned 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
diff --git a/src/Structure.cpp b/src/Structure.cpp
index 18b19ef..70150c2 100644
--- a/src/Structure.cpp
+++ b/src/Structure.cpp
@@ -35,7 +35,7 @@ Structure::~Structure()
35{ 35{
36} 36}
37 37
38uint32_t Structure::GetSize() 38uint32_t Structure::GetSize() const
39{ 39{
40 uint32_t size = 0; 40 uint32_t size = 0;
41 plist_type type = plist_get_node_type(_node); 41 plist_type type = plist_get_node_type(_node);
@@ -50,7 +50,7 @@ uint32_t Structure::GetSize()
50 return size; 50 return size;
51} 51}
52 52
53std::string Structure::ToXml() 53std::string Structure::ToXml() const
54{ 54{
55 char* xml = NULL; 55 char* xml = NULL;
56 uint32_t length = 0; 56 uint32_t length = 0;
@@ -60,7 +60,7 @@ std::string Structure::ToXml()
60 return ret; 60 return ret;
61} 61}
62 62
63std::vector<char> Structure::ToBin() 63std::vector<char> Structure::ToBin() const
64{ 64{
65 char* bin = NULL; 65 char* bin = NULL;
66 uint32_t length = 0; 66 uint32_t length = 0;