Merge pull request #2216 from LukashonakV/small_fixies

Small performance fixies
pull/2218/head
Alex 2023-06-06 13:03:52 +02:00 committed by GitHub
commit d638610db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -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] {

View File

@ -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 &) {
}
}