From 9fb75779f3487691c3ddc54c2223ac8a6ad8b66c Mon Sep 17 00:00:00 2001 From: patrick96 Date: Sun, 31 May 2020 21:11:36 +0200 Subject: [PATCH] Incorporate reviews --- include/components/controller.hpp | 2 +- include/modules/alsa.hpp | 2 +- include/modules/backlight.hpp | 2 +- include/modules/bspwm.hpp | 2 +- include/modules/date.hpp | 2 +- include/modules/i3.hpp | 2 +- include/modules/menu.hpp | 2 +- include/modules/meta/base.hpp | 2 +- include/modules/meta/base.inl | 2 +- include/modules/meta/input_handler.hpp | 2 +- include/modules/mpd.hpp | 2 +- include/modules/pulseaudio.hpp | 2 +- include/modules/systray.hpp | 2 +- include/modules/unsupported.hpp | 2 +- include/modules/xbacklight.hpp | 2 +- include/modules/xkeyboard.hpp | 2 +- include/modules/xworkspaces.hpp | 2 +- src/components/controller.cpp | 12 ++++++------ src/modules/alsa.cpp | 2 +- src/modules/backlight.cpp | 6 +++--- src/modules/bspwm.cpp | 2 +- src/modules/date.cpp | 2 +- src/modules/i3.cpp | 2 +- src/modules/menu.cpp | 2 +- src/modules/mpd.cpp | 2 +- src/modules/pulseaudio.cpp | 2 +- src/modules/systray.cpp | 2 +- src/modules/xbacklight.cpp | 2 +- src/modules/xkeyboard.cpp | 2 +- src/modules/xworkspaces.cpp | 2 +- 30 files changed, 37 insertions(+), 37 deletions(-) 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 = "