summaryrefslogtreecommitdiffstats
path: root/src/Node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Node.cpp')
-rw-r--r--src/Node.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Node.cpp b/src/Node.cpp
index 9bf50ee..35128a6 100644
--- a/src/Node.cpp
+++ b/src/Node.cpp
@@ -27,6 +27,7 @@
#include <plist/Integer.h>
#include <plist/Real.h>
#include <plist/String.h>
+#include <plist/Key.h>
#include <plist/Data.h>
#include <plist/Date.h>
@@ -59,6 +60,10 @@ Node::Node(plist_type type, Node* parent) : _parent(parent)
case PLIST_STRING:
_node = plist_new_string("");
break;
+ case PLIST_KEY:
+ _node = plist_new_string("");
+ plist_set_key_val(_node, "");
+ break;
case PLIST_DATA:
_node = plist_new_data(NULL,0);
break;
@@ -71,7 +76,6 @@ Node::Node(plist_type type, Node* parent) : _parent(parent)
case PLIST_DICT:
_node = plist_new_dict();
break;
- case PLIST_KEY:
case PLIST_NONE:
default:
break;
@@ -130,6 +134,9 @@ Node* Node::FromPlist(plist_t node, Node* parent)
case PLIST_STRING:
ret = new String(node, parent);
break;
+ case PLIST_KEY:
+ ret = new Key(node, parent);
+ break;
case PLIST_DATE:
ret = new Date(node, parent);
break;