Apply modernize-pass-by-value

This commit is contained in:
Alexey Rybalchenko
2021-05-27 14:34:31 +02:00
committed by Dennis Klein
parent c847a7ca02
commit 882edbbdb8
12 changed files with 41 additions and 36 deletions

View File

@@ -40,10 +40,10 @@ struct StateSubscription
fair::mq::StateQueue& fStateQueue;
string fId;
explicit StateSubscription(const string& id, fair::mq::StateMachine& stateMachine, fair::mq::StateQueue& stateQueue)
explicit StateSubscription(string id, fair::mq::StateMachine& stateMachine, fair::mq::StateQueue& stateQueue)
: fStateMachine(stateMachine)
, fStateQueue(stateQueue)
, fId(id)
, fId(std::move(id))
{
fStateMachine.SubscribeToStateChange(fId, [&](fair::mq::State state) {
fStateQueue.Push(state);