summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-11-11 21:40:26 +0100
committerGravatar Jonathan Beck2009-11-11 21:40:26 +0100
commite91836fb3169cbca7c58c2680b591ec7f081b6b3 (patch)
tree88f81ef95e830fac10a7906dcd278f1d9a23a687
parent8c6a809fafa6befff7e2b1adc3df2bdb47042dd1 (diff)
downloadlibplist-e91836fb3169cbca7c58c2680b591ec7f081b6b3.tar.gz
libplist-e91836fb3169cbca7c58c2680b591ec7f081b6b3.tar.bz2
Fix removal of the Utils class.
-rw-r--r--src/Array.cpp6
-rw-r--r--src/Dictionary.cpp6
-rw-r--r--src/Node.cpp1
3 files changed, 6 insertions, 7 deletions
diff --git a/src/Array.cpp b/src/Array.cpp
index 3069314..eb83ac4 100644
--- a/src/Array.cpp
+++ b/src/Array.cpp
@@ -40,7 +40,7 @@ Array::Array(plist_t node, Node* parent) : Structure(parent)
for (uint32_t i = 0; i < size; i++)
{
plist_t subnode = plist_array_get_item(_node, i);
- _array.push_back( Utils::FromPlist(subnode, this) );
+ _array.push_back( Node::FromPlist(subnode, this) );
}
}
@@ -53,7 +53,7 @@ Array::Array(PList::Array& a) : Structure()
for (uint32_t i = 0; i < size; i++)
{
plist_t subnode = plist_array_get_item(_node, i);
- _array.push_back( Utils::FromPlist(subnode, this) );
+ _array.push_back( Node::FromPlist(subnode, this) );
}
}
@@ -72,7 +72,7 @@ Array& Array::operator=(PList::Array& a)
for (uint32_t i = 0; i < size; i++)
{
plist_t subnode = plist_array_get_item(_node, i);
- _array.push_back( Utils::FromPlist(subnode, this) );
+ _array.push_back( Node::FromPlist(subnode, this) );
}
return *this;
}
diff --git a/src/Dictionary.cpp b/src/Dictionary.cpp
index 2a86d59..1829e9a 100644
--- a/src/Dictionary.cpp
+++ b/src/Dictionary.cpp
@@ -40,7 +40,7 @@ Dictionary::Dictionary(plist_t node, Node* parent) : Structure(parent)
plist_dict_next_item(_node, it, &key, &subnode);
while (subnode)
{
- _map[std::string(key)] = Utils::FromPlist(subnode, this);
+ _map[std::string(key)] = Node::FromPlist(subnode, this);
subnode = NULL;
free(key);
@@ -68,7 +68,7 @@ Dictionary::Dictionary(PList::Dictionary& d) : Structure()
plist_dict_next_item(_node, it, &key, &subnode);
while (subnode)
{
- _map[std::string(key)] = Utils::FromPlist(subnode, this);
+ _map[std::string(key)] = Node::FromPlist(subnode, this);
subnode = NULL;
free(key);
@@ -96,7 +96,7 @@ Dictionary& Dictionary::operator=(PList::Dictionary& d)
plist_dict_next_item(_node, it, &key, &subnode);
while (subnode)
{
- _map[std::string(key)] = Utils::FromPlist(subnode, this);
+ _map[std::string(key)] = Node::FromPlist(subnode, this);
subnode = NULL;
free(key);
diff --git a/src/Node.cpp b/src/Node.cpp
index 3122322..9bf50ee 100644
--- a/src/Node.cpp
+++ b/src/Node.cpp
@@ -21,7 +21,6 @@
#include <stdlib.h>
#include <plist/Node.h>
#include <plist/Structure.h>
-#include <plist/Utils.h>
#include <plist/Dictionary.h>
#include <plist/Array.h>
#include <plist/Boolean.h>