From 1bc333972bb5d5b45ba8908f1b12015300d88711 Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Wed, 28 Oct 2009 17:57:52 +0100 Subject: Fix build for MSVC9. --- src/Boolean.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Boolean.cpp') 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) { plist_free(_node); _node = plist_copy(b.GetPlist()); + return *this; } Boolean::Boolean(bool b) : Node(PLIST_BOOLEAN) @@ -66,7 +67,7 @@ bool Boolean::GetValue() { uint8_t b = 0; plist_get_bool_val(_node, &b); - return b; + return b != 0 ; } }; -- cgit v1.1-32-gdbae