Browse Source

CallbackDispatcher: use move semantics

pull/15/head
heck 3 years ago
parent
commit
8446aa9e8b
  1. 2
      src/callback_dispatcher.cc

2
src/callback_dispatcher.cc

@ -35,7 +35,7 @@ namespace pEp {
throw std::invalid_argument("messageToSend must be set"); throw std::invalid_argument("messageToSend must be set");
} }
targets.push_back({messageToSend, notifyHandshake, on_startup, shutdown}); targets.push_back({messageToSend, notifyHandshake, std::move(on_startup), std::move(shutdown)});
} }
void CallbackDispatcher::remove(::messageToSend_t messageToSend) void CallbackDispatcher::remove(::messageToSend_t messageToSend)

Loading…
Cancel
Save