Skip to content

Commit

Permalink
fix(swaybar-ipc): avoid unnecessary copy of struct swaybar_config
Browse files Browse the repository at this point in the history
  • Loading branch information
alebastr committed Nov 28, 2021
1 parent 4b5dc1b commit cf5ddb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sway/bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit cf5ddb2

Please sign in to comment.