summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-03-19 02:32:57 +0100
committerGravatar Nikias Bassen2014-03-19 02:32:57 +0100
commit6b719ecda2072dafeb98a44a6f4eac247748efc0 (patch)
treeb223294da3c9e4124ddead7c6ece4107b72d8b47 /src/plist.c
parentf9299fa80a7530fea4b829ea851972a664edf1fe (diff)
downloadlibplist-6b719ecda2072dafeb98a44a6f4eac247748efc0.tar.gz
libplist-6b719ecda2072dafeb98a44a6f4eac247748efc0.tar.bz2
deprecated plist_dict_insert_item in favor of plist_dict_set_item
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/plist.c b/src/plist.c
index f33de0a..eeb4ffd 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -424,12 +424,7 @@ void plist_dict_set_item(plist_t node, const char* key, plist_t item)
void plist_dict_insert_item(plist_t node, const char* key, plist_t item)
{
- if (node && PLIST_DICT == plist_get_node_type(node))
- {
- node_attach(node, plist_new_key(key));
- node_attach(node, item);
- }
- return;
+ plist_dict_set_item(node, key, item);
}
void plist_dict_remove_item(plist_t node, const char* key)