summaryrefslogtreecommitdiffstats
path: root/src/Boolean.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Boolean.cpp')
-rw-r--r--src/Boolean.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Boolean.cpp b/src/Boolean.cpp
index 3b20f45..dfa96ca 100644
--- a/src/Boolean.cpp
+++ b/src/Boolean.cpp
@@ -41,6 +41,7 @@ Boolean& Boolean::operator=(PList::Boolean& b)
41{ 41{
42 plist_free(_node); 42 plist_free(_node);
43 _node = plist_copy(b.GetPlist()); 43 _node = plist_copy(b.GetPlist());
44 return *this;
44} 45}
45 46
46Boolean::Boolean(bool b) : Node(PLIST_BOOLEAN) 47Boolean::Boolean(bool b) : Node(PLIST_BOOLEAN)
@@ -66,7 +67,7 @@ bool Boolean::GetValue()
66{ 67{
67 uint8_t b = 0; 68 uint8_t b = 0;
68 plist_get_bool_val(_node, &b); 69 plist_get_bool_val(_node, &b);
69 return b; 70 return b != 0 ;
70} 71}
71 72
72}; 73};