Skip to content

Commit

Permalink
Apply modernize-use-override
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx authored and dennisklein committed Sep 27, 2021
1 parent ad824b4 commit 153dcfa
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion fairmq/ofi/TransportFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct TransportFactory final : mq::TransportFactory
TransportFactory(TransportFactory&&) = delete;
TransportFactory& operator=(const TransportFactory&) = delete;
TransportFactory& operator=(TransportFactory&&) = delete;
~TransportFactory() = default;
~TransportFactory() override = default;

auto CreateMessage() -> std::unique_ptr<mq::Message> override
{
Expand Down
2 changes: 1 addition & 1 deletion fairmq/plugins/config/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Config : public Plugin
Config& operator=(const Config&) = delete;
Config& operator=(Config&&) = delete;

~Config();
~Config() override;
};

Plugin::ProgOptions ConfigPluginProgramOptions();
Expand Down
2 changes: 1 addition & 1 deletion fairmq/plugins/control/Control.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Control : public Plugin
Control& operator=(const Control&) = delete;
Control& operator=(Control&&) = delete;

~Control();
~Control() override;

private:
auto InteractiveMode() -> void;
Expand Down
6 changes: 0 additions & 6 deletions fairmq/shmem/Manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
* GNU Lesser General Public Licence (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
/**
* Manager.h
*
* @since 2016-04-08
* @author A. Rybalchenko
*/

#ifndef FAIR_MQ_SHMEM_MANAGER_H_
#define FAIR_MQ_SHMEM_MANAGER_H_
Expand Down
6 changes: 0 additions & 6 deletions fairmq/shmem/Region.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
* GNU Lesser General Public Licence (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
/**
* Region.h
*
* @since 2016-04-08
* @author A. Rybalchenko
*/

#ifndef FAIR_MQ_SHMEM_REGION_H_
#define FAIR_MQ_SHMEM_REGION_H_
Expand Down
6 changes: 3 additions & 3 deletions fairmq/zeromq/UnmanagedRegion.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ class UnmanagedRegion final : public fair::mq::UnmanagedRegion
UnmanagedRegion& operator=(const UnmanagedRegion&) = delete;
UnmanagedRegion& operator=(UnmanagedRegion&&) = delete;

virtual void* GetData() const override { return fBuffer; }
virtual size_t GetSize() const override { return fSize; }
void* GetData() const override { return fBuffer; }
size_t GetSize() const override { return fSize; }
uint16_t GetId() const override { return fId; }
int64_t GetUserFlags() const { return fUserFlags; }
void SetLinger(uint32_t /* linger */) override { LOG(debug) << "ZeroMQ UnmanagedRegion linger option not implemented. Acknowledgements are local."; }
uint32_t GetLinger() const override { LOG(debug) << "ZeroMQ UnmanagedRegion linger option not implemented. Acknowledgements are local."; return 0; }

Transport GetType() const override { return Transport::ZMQ; }

virtual ~UnmanagedRegion()
~UnmanagedRegion() override
{
LOG(debug) << "destroying region " << fId;
fCtx.RemoveRegion(fId);
Expand Down
2 changes: 1 addition & 1 deletion test/device/_config.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TestDevice : public FairMQDevice
TestDevice& operator=(const TestDevice&) = delete;
TestDevice& operator=(TestDevice&&) = delete;

~TestDevice()
~TestDevice() override
{
WaitForState(fair::mq::State::Running);
ChangeState(fair::mq::Transition::Stop);
Expand Down
2 changes: 1 addition & 1 deletion test/device/_error_state.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class BadDevice : public FairMQDevice
BadDevice& operator=(const BadDevice&) = delete;
BadDevice& operator=(BadDevice&&) = delete;

~BadDevice()
~BadDevice() override
{
ChangeState(fair::mq::Transition::ResetDevice);

Expand Down
2 changes: 1 addition & 1 deletion test/device/_transitions.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SlowDevice : public FairMQDevice
SlowDevice() = default;

protected:
void Init()
void Init() override
{
this_thread::sleep_for(chrono::milliseconds(100));
}
Expand Down

0 comments on commit 153dcfa

Please sign in to comment.