aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-04-03 12:36:46 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-04-03 12:36:46 -0500
commit6e4367c088eb9026f29295c650f8639e09423212 (patch)
tree60c0ccbaa4d59fd7b40e5558ffd21a04b9948dbd
parenteab70c8626906fcf98f5d5653a8ea1bebd2cfc89 (diff)
downloadayatana-indicator-datetime-6e4367c088eb9026f29295c650f8639e09423212.tar.gz
ayatana-indicator-datetime-6e4367c088eb9026f29295c650f8639e09423212.tar.bz2
ayatana-indicator-datetime-6e4367c088eb9026f29295c650f8639e09423212.zip
add override keyword to Clock class
-rw-r--r--include/datetime/clock-mock.h2
-rw-r--r--include/datetime/clock.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/datetime/clock-mock.h b/include/datetime/clock-mock.h
index 84fd860..011d079 100644
--- a/include/datetime/clock-mock.h
+++ b/include/datetime/clock-mock.h
@@ -39,7 +39,7 @@ public:
explicit MockClock(const DateTime& dt): m_localtime(dt) {}
~MockClock() =default;
- DateTime localtime() const { return m_localtime; }
+ DateTime localtime() const override { return m_localtime; }
void set_localtime(const DateTime& dt)
{
diff --git a/include/datetime/clock.h b/include/datetime/clock.h
index 8745d24..4a0642f 100644
--- a/include/datetime/clock.h
+++ b/include/datetime/clock.h
@@ -76,7 +76,7 @@ class LiveClock: public Clock
public:
LiveClock (const std::shared_ptr<const Timezone>& zones);
virtual ~LiveClock();
- virtual DateTime localtime() const;
+ virtual DateTime localtime() const override;
private:
class Impl;