diff --git a/src/lib/base/EventQueue.cpp b/src/lib/base/EventQueue.cpp index b12c0736..8327a4af 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")); - CEvent& event = m_pending.front(); + const CEvent& event = m_pending.front(); addEventToBuffer(event); m_pending.pop(); }