diff --git a/src/lib/base/EventQueue.cpp b/src/lib/base/EventQueue.cpp index 8327a4af..b12c0736 100644 --- a/src/lib/base/EventQueue.cpp +++ b/src/lib/base/EventQueue.cpp @@ -112,7 +112,7 @@ CEventQueue::loop() LOG((CLOG_DEBUG "event queue is ready")); while (!m_pending.empty()) { LOG((CLOG_DEBUG "add pending events to buffer")); - const CEvent& event = m_pending.front(); + CEvent& event = m_pending.front(); addEventToBuffer(event); m_pending.pop(); } diff --git a/src/lib/base/EventQueue.h b/src/lib/base/EventQueue.h index 4d6ef37c..e3a072f1 100644 --- a/src/lib/base/EventQueue.h +++ b/src/lib/base/EventQueue.h @@ -179,7 +179,7 @@ private: IScreenEvents* m_typesForIScreen; CMutex* m_readyMutex; CCondVar* m_readyCondVar; - std::queue m_pending; + std::queue m_pending; }; #define EVENT_TYPE_ACCESSOR(type_) \