We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 559b27d commit 5e48f26Copy full SHA for 5e48f26
source/mqtt/Mqtt5ClientCore.cpp
@@ -241,10 +241,9 @@ namespace Aws
241
{
242
pubackHandle = Aws::Crt::MakeShared<PubackControlHandle>(
243
client_core->m_allocator, pubackControlId);
244
- auto functor = Aws::Crt::MakeShared<PubackAcquireFunctor>(client_core->m_allocator);
245
- functor->handle = pubackHandle;
246
- eventData.acquirePubackControl = [functor]() -> std::shared_ptr<PubackControlHandle>
247
- { return (*functor)(); };
+ PubackAcquireFunctor functor;
+ functor.handle = pubackHandle;
+ eventData.acquirePubackControl = std::move(functor);
248
}
249
250
0 commit comments