diff options
author | Jonathan Beck | 2009-10-28 17:57:52 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-10-28 17:57:52 +0100 |
commit | 1bc333972bb5d5b45ba8908f1b12015300d88711 (patch) | |
tree | d061424c0ba0390259ae092df68c9c7462e16315 /src/Boolean.cpp | |
parent | a129688a888968286a30eeba7833629225c59fa0 (diff) | |
download | libplist-1bc333972bb5d5b45ba8908f1b12015300d88711.tar.gz libplist-1bc333972bb5d5b45ba8908f1b12015300d88711.tar.bz2 |
Fix build for MSVC9.
Diffstat (limited to 'src/Boolean.cpp')
-rw-r--r-- | src/Boolean.cpp | 3 |
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) { 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 ; } }; |