From 8446aa9e8b4657b5e1eb69b831d31d9693e83ef4 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 3 Mar 2022 00:57:52 +0100 Subject: [PATCH] CallbackDispatcher: use move semantics --- src/callback_dispatcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback_dispatcher.cc b/src/callback_dispatcher.cc index 3094ef9..5370960 100644 --- a/src/callback_dispatcher.cc +++ b/src/callback_dispatcher.cc @@ -35,7 +35,7 @@ namespace pEp { 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)