From 87023c39f80142e43ce7f98b7cb5fbb3becd2608 Mon Sep 17 00:00:00 2001 From: Viktar Lukashonak Date: Tue, 6 Jun 2023 13:58:05 +0300 Subject: [PATCH] Small performance fixies Signed-off-by: Viktar Lukashonak --- src/modules/cava.cpp | 1 - src/modules/wlr/workspace_manager.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/cava.cpp b/src/modules/cava.cpp index 8e788f5..be9bef4 100644 --- a/src/modules/cava.cpp +++ b/src/modules/cava.cpp @@ -102,7 +102,6 @@ waybar::modules::Cava::Cava(const std::string& id, const Json::Value& config) thread_fetch_input_ = [this] { thread_fetch_input_.sleep_for(fetch_input_delay_); input_source_(&audio_data_); - dp.emit(); }; thread_ = [this] { diff --git a/src/modules/wlr/workspace_manager.cpp b/src/modules/wlr/workspace_manager.cpp index 0b1dc72..2d4c93b 100644 --- a/src/modules/wlr/workspace_manager.cpp +++ b/src/modules/wlr/workspace_manager.cpp @@ -73,7 +73,7 @@ auto WorkspaceManager::workspace_comparator() const try { auto is_number_less = std::stoi(lhs->get_name()) < std::stoi(rhs->get_name()); return is_number_less; - } catch (std::invalid_argument) { + } catch (const std::invalid_argument &) { } }