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 /include/datetime/locations.h | |
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 'include/datetime/locations.h')
-rw-r--r-- | include/datetime/locations.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/datetime/locations.h b/include/datetime/locations.h index fc776bb..b840436 100644 --- a/include/datetime/locations.h +++ b/include/datetime/locations.h @@ -39,18 +39,10 @@ namespace datetime { class Location { public: + Location (const std::string& zone, const std::string& name); const std::string& zone() const; - const std::string& name() const; - - bool operator== (const Location& that) const - { - return (name() == that.name()) && - (zone() == that.zone()) && - (m_offset == that.m_offset); - } - - Location (const std::string& zone, const std::string& name); + bool operator== (const Location& that) const; private: |