diff options
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 7f034570..6382e899 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1588,11 +1588,11 @@ CHyprCtl::CHyprCtl() { startHyprCtlSocket(); } -std::shared_ptr<SHyprCtlCommand> CHyprCtl::registerCommand(SHyprCtlCommand cmd) { - return m_vCommands.emplace_back(std::make_shared<SHyprCtlCommand>(cmd)); +SP<SHyprCtlCommand> CHyprCtl::registerCommand(SHyprCtlCommand cmd) { + return m_vCommands.emplace_back(makeShared<SHyprCtlCommand>(cmd)); } -void CHyprCtl::unregisterCommand(const std::shared_ptr<SHyprCtlCommand>& cmd) { +void CHyprCtl::unregisterCommand(const SP<SHyprCtlCommand>& cmd) { std::erase(m_vCommands, cmd); } |
