fix(swaybar-ipc): avoid unnecessary copy of struct swaybar_config

This commit is contained in:
Aleksei Bavshin 2021-11-28 11:34:21 -08:00
parent 4b5dc1bb3a
commit cf5ddb2a5e
No known key found for this signature in database
GPG Key ID: 4F071603387A382A
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ void BarIpcClient::onIpcEvent(const struct Ipc::ipc_response& res) {
} else {
// configuration update
auto config = parseConfig(payload);
signal_config_(config);
signal_config_(std::move(config));
}
} catch (const std::exception& e) {
spdlog::error("BarIpcClient::onEvent {}", e.what());