From: Zofia Abramowska Date: Wed, 5 Jul 2017 15:16:31 +0000 (+0200) Subject: Don't move event from vector X-Git-Tag: submit/tizen/20170727.154157~1^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cdaeaa6bacba10e1e6472e885be9223e1b0128e4;p=platform%2Fcore%2Fsecurity%2Faskuser.git Don't move event from vector Moved event was used later, which resulted in error. Change-Id: I920f285d2cd649aba5d2237aab8f5d1e1b70a810 --- diff --git a/src/notification-daemon/Logic.cpp b/src/notification-daemon/Logic.cpp index dafdd2c..790ccc1 100644 --- a/src/notification-daemon/Logic.cpp +++ b/src/notification-daemon/Logic.cpp @@ -185,7 +185,7 @@ void Logic::processEvents() { if (m_pendingEvents.empty()) return; - FdEvent fdEvent = std::move(m_pendingEvents.front()); + FdEvent &fdEvent = m_pendingEvents.front(); m_currentEvent = fdEvent.id; fdEvent.event->process(); }