diff options
Diffstat (limited to 'src/Boolean.cpp')
-rw-r--r-- | src/Boolean.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Boolean.cpp b/src/Boolean.cpp index 4608eaf..9ec1a63 100644 --- a/src/Boolean.cpp +++ b/src/Boolean.cpp @@ -18,7 +18,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <stdlib.h> +#include <cstdlib> +#include "plist.h" #include <plist/Boolean.h> namespace PList @@ -37,7 +38,7 @@ Boolean::Boolean(const PList::Boolean& b) : Node(PLIST_BOOLEAN) plist_set_bool_val(_node, b.GetValue()); } -Boolean& Boolean::operator=(PList::Boolean& b) +Boolean& Boolean::operator=(const PList::Boolean& b) { plist_free(_node); _node = plist_copy(b.GetPlist()); @@ -70,4 +71,4 @@ bool Boolean::GetValue() const return b != 0 ; } -}; +} // namespace PList |