diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 13:00:22 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-30 13:00:22 -0600 |
commit | cc2ad2ad457313cb87e4483bf0278f670a5a5cea (patch) | |
tree | ed969267604bf802dc2b22e8c04835cd1ae83708 /src/date-time.cpp | |
parent | d2caa37e18191c31d866dd3042b676c135bae50d (diff) | |
download | ayatana-indicator-datetime-cc2ad2ad457313cb87e4483bf0278f670a5a5cea.tar.gz ayatana-indicator-datetime-cc2ad2ad457313cb87e4483bf0278f670a5a5cea.tar.bz2 ayatana-indicator-datetime-cc2ad2ad457313cb87e4483bf0278f670a5a5cea.zip |
as per review, don't inline unless there are performance issues
Diffstat (limited to 'src/date-time.cpp')
-rw-r--r-- | src/date-time.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/date-time.cpp b/src/date-time.cpp index 40c638f..a634c5e 100644 --- a/src/date-time.cpp +++ b/src/date-time.cpp @@ -27,6 +27,23 @@ namespace datetime { **** ***/ +DateTime::DateTime(GDateTime* gdt) +{ + reset(gdt); +} + +DateTime& DateTime::operator=(GDateTime* gdt) +{ + reset(gdt); + return *this; +} + +DateTime& DateTime::operator=(const DateTime& that) +{ + m_dt = that.m_dt; + return *this; +} + DateTime::DateTime(time_t t) { GDateTime * gdt = g_date_time_new_from_unix_local(t); |