summaryrefslogtreecommitdiffstats
path: root/src/Data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data.cpp')
-rw-r--r--src/Data.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Data.cpp b/src/Data.cpp
index a96fc50..b06a144 100644
--- a/src/Data.cpp
+++ b/src/Data.cpp
@@ -66,14 +66,10 @@ void Data::SetValue(const std::vector<char>& buff)
66 66
67std::vector<char> Data::GetValue() const 67std::vector<char> Data::GetValue() const
68{ 68{
69 char* buff = NULL;
70 uint64_t length = 0; 69 uint64_t length = 0;
71 plist_get_data_val(_node, &buff, &length); 70 const char* buff = plist_get_data_ptr(_node, &length);
72 std::vector<char> ret(buff, buff + length); 71 std::vector<char> ret(buff, buff + length);
73 delete buff;
74 return ret; 72 return ret;
75} 73}
76 74
77
78
79} // namespace PList 75} // namespace PList