diff options
Diffstat (limited to 'src/Real.cpp')
-rw-r--r-- | src/Real.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Real.cpp b/src/Real.cpp index ec300c9..02d1d9b 100644 --- a/src/Real.cpp +++ b/src/Real.cpp @@ -18,7 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <stdlib.h> +#include <cstdlib> #include <plist/Real.h> namespace PList @@ -32,12 +32,12 @@ Real::Real(plist_t node, Node* parent) : Node(node, parent) { } -Real::Real(const PList::Real& d) : Node(PLIST_UINT) +Real::Real(const PList::Real& d) : Node(PLIST_INT) { plist_set_real_val(_node, d.GetValue()); } -Real& Real::operator=(PList::Real& d) +Real& Real::operator=(const PList::Real& d) { plist_free(_node); _node = plist_copy(d.GetPlist()); @@ -70,4 +70,4 @@ double Real::GetValue() const return d; } -}; +} // namespace PList |