diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-10-12 10:42:38 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-11-29 08:12:24 -0400 |
commit | b19c4124b3c9a15fe3baf8792c55eb26eca51c0f (patch) | |
tree | 2b63cf89629dbaf5659b6ee390bd76784467f25f /src/common | |
parent | dd6e8bd71c6025a51d88000caf28121ec00499db (diff) |
refactor: Rename ambiguous interfaces::MakeHandler functions
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/interfaces.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/interfaces.cpp b/src/common/interfaces.cpp index 289856871d..b9b4f5dded 100644 --- a/src/common/interfaces.cpp +++ b/src/common/interfaces.cpp @@ -20,10 +20,10 @@ public: std::function<void()> m_cleanup; }; -class HandlerImpl : public interfaces::Handler +class SignalHandler : public interfaces::Handler { public: - explicit HandlerImpl(boost::signals2::connection connection) : m_connection(std::move(connection)) {} + explicit SignalHandler(boost::signals2::connection connection) : m_connection(std::move(connection)) {} void disconnect() override { m_connection.disconnect(); } @@ -39,14 +39,14 @@ public: } // namespace common namespace interfaces { -std::unique_ptr<Handler> MakeHandler(std::function<void()> cleanup) +std::unique_ptr<Handler> MakeCleanupHandler(std::function<void()> cleanup) { return std::make_unique<common::CleanupHandler>(std::move(cleanup)); } -std::unique_ptr<Handler> MakeHandler(boost::signals2::connection connection) +std::unique_ptr<Handler> MakeSignalHandler(boost::signals2::connection connection) { - return std::make_unique<common::HandlerImpl>(std::move(connection)); + return std::make_unique<common::SignalHandler>(std::move(connection)); } std::unique_ptr<Echo> MakeEcho() { return std::make_unique<common::EchoImpl>(); } |