From aa95947ded93e7e45f222f255baf186433cc11fc Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 20 Jun 2017 21:58:56 +0200 Subject: Use the override specifier (C++11) where we expect to be overriding the virtual function of a base class --- src/httprpc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/httprpc.cpp') diff --git a/src/httprpc.cpp b/src/httprpc.cpp index 497e565b1..8c2e0da32 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -47,11 +47,11 @@ public: HTTPRPCTimerInterface(struct event_base* _base) : base(_base) { } - const char* Name() + const char* Name() override { return "HTTP"; } - RPCTimerBase* NewTimer(std::function& func, int64_t millis) + RPCTimerBase* NewTimer(std::function& func, int64_t millis) override { return new HTTPRPCTimer(base, func, millis); } -- cgit v1.2.3