Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(874)

Unified Diff: sky/engine/core/events/EventListenerMap.cpp

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/events/EventListenerMap.h ('k') | sky/engine/core/events/EventTarget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « sky/engine/core/events/EventListenerMap.h ('k') | sky/engine/core/events/EventTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698