From 93ebd6a9cc2b3fe6d8a70d592ecf993271103cb2 Mon Sep 17 00:00:00 2001 From: jerry Date: Thu, 17 Apr 2014 16:49:19 +0000 Subject: [PATCH] fixed: const type was used in queue --- src/lib/base/EventQueue.cpp | 2 +- src/lib/base/EventQueue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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_) \