Skip to content

Commit 5e48f26

Browse files
committed
remove lambda
1 parent 559b27d commit 5e48f26

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/mqtt/Mqtt5ClientCore.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ namespace Aws
241241
{
242242
pubackHandle = Aws::Crt::MakeShared<PubackControlHandle>(
243243
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)(); };
244+
PubackAcquireFunctor functor;
245+
functor.handle = pubackHandle;
246+
eventData.acquirePubackControl = std::move(functor);
248247
}
249248
}
250249

0 commit comments

Comments
 (0)