Index: sky/engine/core/events/EventListenerMap.cpp |
diff --git a/sky/engine/core/events/EventListenerMap.cpp b/sky/engine/core/events/EventListenerMap.cpp |
index 3677a32b7dbdb4c6e4d6e7775b97edc11b5251d2..d6a541b7143bf2d013150e8de006087a2cbe59db 100644 |
--- a/sky/engine/core/events/EventListenerMap.cpp |
+++ b/sky/engine/core/events/EventListenerMap.cpp |
@@ -176,13 +176,13 @@ EventListenerIterator::EventListenerIterator() |
{ |
} |
-EventListenerIterator::EventListenerIterator(EventTarget* target) |
+EventListenerIterator::EventListenerIterator(const EventTarget* target) |
: m_map(0) |
, m_entryIndex(0) |
, m_index(0) |
{ |
ASSERT(target); |
- EventTargetData* data = target->eventTargetData(); |
+ EventTargetData* data = const_cast<EventTarget*>(target)->eventTargetData(); |
if (!data) |
return; |