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

Unified Diff: Source/core/dom/EventListenerMap.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | « Source/core/dom/Element.cpp ('k') | Source/core/dom/EventSender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/EventListenerMap.cpp
diff --git a/Source/core/dom/EventListenerMap.cpp b/Source/core/dom/EventListenerMap.cpp
index 35af02fe77c7e3452d75f34fc9b2672120348454..3d34f5925d28475e9364f5df7ddb59cfd31498f2 100644
--- a/Source/core/dom/EventListenerMap.cpp
+++ b/Source/core/dom/EventListenerMap.cpp
@@ -111,7 +111,7 @@ static bool addListenerToVector(EventListenerVector* vector, PassRefPtr<EventLis
{
RegisteredEventListener registeredListener(listener, useCapture);
- if (vector->find(registeredListener) != notFound)
+ if (vector->find(registeredListener) != kNotFound)
return false; // Duplicate listener.
vector->append(registeredListener);
@@ -135,7 +135,7 @@ static bool removeListenerFromVector(EventListenerVector* listenerVector, EventL
{
RegisteredEventListener registeredListener(listener, useCapture);
indexOfRemovedListener = listenerVector->find(registeredListener);
- if (indexOfRemovedListener == notFound)
+ if (indexOfRemovedListener == kNotFound)
return false;
listenerVector->remove(indexOfRemovedListener);
return true;
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/EventSender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698