summaryrefslogtreecommitdiffstats
path: root/src/Boolean.cpp
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2014-08-15 21:59:01 -0400
committerGravatar Nikias Bassen2014-09-20 00:10:46 +0200
commitccd6f05fe1e6cd5a1611b0df78974fa39869013d (patch)
tree3c9e2c431d85cfb683de1724b121819aa16d29aa /src/Boolean.cpp
parentbc147d80b5a608b8a0478041e5198093ecd767b8 (diff)
downloadlibplist-ccd6f05fe1e6cd5a1611b0df78974fa39869013d.tar.gz
libplist-ccd6f05fe1e6cd5a1611b0df78974fa39869013d.tar.bz2
Change Clone() to be const, which required constructors with const references and a const GetValue().
Diffstat (limited to 'src/Boolean.cpp')
-rw-r--r--src/Boolean.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Boolean.cpp b/src/Boolean.cpp
index e58472f..4608eaf 100644
--- a/src/Boolean.cpp
+++ b/src/Boolean.cpp
@@ -32,7 +32,7 @@ Boolean::Boolean(plist_t node, Node* parent) : Node(node, parent)
32{ 32{
33} 33}
34 34
35Boolean::Boolean(PList::Boolean& b) : Node(PLIST_BOOLEAN) 35Boolean::Boolean(const PList::Boolean& b) : Node(PLIST_BOOLEAN)
36{ 36{
37 plist_set_bool_val(_node, b.GetValue()); 37 plist_set_bool_val(_node, b.GetValue());
38} 38}
@@ -53,7 +53,7 @@ Boolean::~Boolean()
53{ 53{
54} 54}
55 55
56Node* Boolean::Clone() 56Node* Boolean::Clone() const
57{ 57{
58 return new Boolean(*this); 58 return new Boolean(*this);
59} 59}
@@ -63,7 +63,7 @@ void Boolean::SetValue(bool b)
63 plist_set_bool_val(_node, b); 63 plist_set_bool_val(_node, b);
64} 64}
65 65
66bool Boolean::GetValue() 66bool Boolean::GetValue() const
67{ 67{
68 uint8_t b = 0; 68 uint8_t b = 0;
69 plist_get_bool_val(_node, &b); 69 plist_get_bool_val(_node, &b);