fixed: const type was used in queue
This commit is contained in:
parent
8482504b65
commit
93ebd6a9cc
|
@ -112,7 +112,7 @@ CEventQueue::loop()
|
||||||
LOG((CLOG_DEBUG "event queue is ready"));
|
LOG((CLOG_DEBUG "event queue is ready"));
|
||||||
while (!m_pending.empty()) {
|
while (!m_pending.empty()) {
|
||||||
LOG((CLOG_DEBUG "add pending events to buffer"));
|
LOG((CLOG_DEBUG "add pending events to buffer"));
|
||||||
const CEvent& event = m_pending.front();
|
CEvent& event = m_pending.front();
|
||||||
addEventToBuffer(event);
|
addEventToBuffer(event);
|
||||||
m_pending.pop();
|
m_pending.pop();
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,7 +179,7 @@ private:
|
||||||
IScreenEvents* m_typesForIScreen;
|
IScreenEvents* m_typesForIScreen;
|
||||||
CMutex* m_readyMutex;
|
CMutex* m_readyMutex;
|
||||||
CCondVar<bool>* m_readyCondVar;
|
CCondVar<bool>* m_readyCondVar;
|
||||||
std::queue<const CEvent> m_pending;
|
std::queue<CEvent> m_pending;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define EVENT_TYPE_ACCESSOR(type_) \
|
#define EVENT_TYPE_ACCESSOR(type_) \
|
||||||
|
|
Loading…
Reference in New Issue