From 5f96c4b721dbf8dd39bd4666c939fb7060ce87e5 Mon Sep 17 00:00:00 2001 From: sfc-gh-tclinkenbeard Date: Fri, 22 Jan 2021 13:19:19 -0800 Subject: [PATCH] Add override keyword to DummyThreadPool methods --- flow/IThreadPool.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/flow/IThreadPool.h b/flow/IThreadPool.h index 160c567a92..7937099ec1 100644 --- a/flow/IThreadPool.h +++ b/flow/IThreadPool.h @@ -114,11 +114,11 @@ public: ~DummyThreadPool() {} DummyThreadPool() : thread(nullptr) {} Future getError() const override { return errors.getFuture(); } - void addThread( IThreadPoolReceiver* userData ) { + void addThread(IThreadPoolReceiver* userData) override { ASSERT( !thread ); thread = userData; } - void post( PThreadAction action ) { + void post(PThreadAction action) override { try { (*action)( thread ); } catch (Error& e) { @@ -127,15 +127,9 @@ public: errors.sendError( unknown_error() ); } } - Future stop(Error const& e) { - return Void(); - } - void addref() { - ReferenceCounted::addref(); - } - void delref() { - ReferenceCounted::delref(); - } + Future stop(Error const& e) override { return Void(); } + void addref() override { ReferenceCounted::addref(); } + void delref() override { ReferenceCounted::delref(); } private: IThreadPoolReceiver* thread;