diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-09-19 14:34:50 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-09-19 14:34:50 +0000 |
commit | 16a4e034c30f2bc6b151b04707d3ec1a490dba44 (patch) | |
tree | f726165c9979fcb13ce478fd2dafa1ae1efad52b /tests/test-live-actions.cpp | |
parent | ac54aebec5fa0ba95fb2d583316c0a64ce3384dd (diff) | |
parent | b3d8778a52576b66ab00b08aa939612136a49a01 (diff) | |
download | ayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.tar.gz ayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.tar.bz2 ayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.zip |
Fix flint++ warnings
Approved by: Ted Gould, PS Jenkins bot
Diffstat (limited to 'tests/test-live-actions.cpp')
-rw-r--r-- | tests/test-live-actions.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test-live-actions.cpp b/tests/test-live-actions.cpp index c67b380..2cd6eef 100644 --- a/tests/test-live-actions.cpp +++ b/tests/test-live-actions.cpp @@ -26,17 +26,19 @@ **** ***/ +using namespace unity::indicator::datetime; + class MockLiveActions: public LiveActions { public: std::string last_cmd; std::string last_url; - MockLiveActions(const std::shared_ptr<State>& state_in): LiveActions(state_in) {} - virtual ~MockLiveActions() {} + explicit MockLiveActions(const std::shared_ptr<State>& state_in): LiveActions(state_in) {} + ~MockLiveActions() {} protected: - void dispatch_url(const std::string& url) { last_url = url; } - void execute_command(const std::string& cmd) { last_cmd = cmd; } + void dispatch_url(const std::string& url) override { last_url = url; } + void execute_command(const std::string& cmd) override { last_cmd = cmd; } }; /*** |