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

Unified Diff: Source/core/platform/mediastream/MediaStreamSource.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
Index: Source/core/platform/mediastream/MediaStreamSource.cpp
diff --git a/Source/core/platform/mediastream/MediaStreamSource.cpp b/Source/core/platform/mediastream/MediaStreamSource.cpp
index ffc3d9e827838784d1da7369b592691a5ada2bab..ea2e03400fed9309cb25fd00d49b0ff847af6d65 100644
--- a/Source/core/platform/mediastream/MediaStreamSource.cpp
+++ b/Source/core/platform/mediastream/MediaStreamSource.cpp
@@ -66,7 +66,7 @@ void MediaStreamSource::addObserver(MediaStreamSource::Observer* observer)
void MediaStreamSource::removeObserver(MediaStreamSource::Observer* observer)
{
size_t pos = m_observers.find(observer);
- if (pos != notFound)
+ if (pos != kNotFound)
m_observers.remove(pos);
}
@@ -82,7 +82,7 @@ bool MediaStreamSource::removeAudioConsumer(AudioDestinationConsumer* consumer)
ASSERT(m_requiresConsumer);
MutexLocker locker(m_audioConsumersLock);
size_t pos = m_audioConsumers.find(consumer);
- if (pos != notFound) {
+ if (pos != kNotFound) {
m_audioConsumers.remove(pos);
return true;
}
« no previous file with comments | « Source/core/platform/mediastream/MediaStreamDescriptor.cpp ('k') | Source/core/platform/network/HTTPParsers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698