summaryrefslogtreecommitdiffstats
path: root/src/Date.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Date.cpp')
-rw-r--r--src/Date.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Date.cpp b/src/Date.cpp
index 4b5e0a1..8b8e650 100644
--- a/src/Date.cpp
+++ b/src/Date.cpp
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdlib.h>
+#include <cstdlib>
#include <plist/Date.h>
namespace PList
@@ -38,7 +38,7 @@ Date::Date(const PList::Date& d) : Node(PLIST_DATE)
plist_set_date_val(_node, t.tv_sec, t.tv_usec);
}
-Date& Date::operator=(PList::Date& d)
+Date& Date::operator=(const PList::Date& d)
{
plist_free(_node);
_node = plist_copy(d.GetPlist());
@@ -73,4 +73,4 @@ timeval Date::GetValue() const
return t;
}
-};
+} // namespace PList