diff --git a/include/components/controller.hpp b/include/components/controller.hpp index f5593a96..79bb96c4 100644 --- a/include/components/controller.hpp +++ b/include/components/controller.hpp @@ -75,7 +75,7 @@ class controller private: size_t setup_modules(alignment align); - bool try_forward_legacy_action(const string cmd); + bool try_forward_legacy_action(const string& cmd); connection& m_connection; signal_emitter& m_sig; diff --git a/include/modules/alsa.hpp b/include/modules/alsa.hpp index da97c7bb..21903382 100644 --- a/include/modules/alsa.hpp +++ b/include/modules/alsa.hpp @@ -36,7 +36,7 @@ namespace modules { static constexpr auto EVENT_TOGGLE = "toggle"; protected: - bool input(string&& action, string&& data); + bool input(const string& action, const string& data); private: static constexpr auto FORMAT_VOLUME = "format-volume"; diff --git a/include/modules/backlight.hpp b/include/modules/backlight.hpp index 4bec7501..779821ba 100644 --- a/include/modules/backlight.hpp +++ b/include/modules/backlight.hpp @@ -32,7 +32,7 @@ namespace modules { static constexpr const char* EVENT_DEC = "dec"; protected: - bool input(string&& cmd, string&& data); + bool input(const string& action, const string& data); private: static constexpr auto TAG_LABEL = "