From cdaeaa6bacba10e1e6472e885be9223e1b0128e4 Mon Sep 17 00:00:00 2001 From: Zofia Abramowska Date: Wed, 5 Jul 2017 17:16:31 +0200 Subject: [PATCH] Don't move event from vector Moved event was used later, which resulted in error. Change-Id: I920f285d2cd649aba5d2237aab8f5d1e1b70a810 --- src/notification-daemon/Logic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.7.4