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

Unified Diff: Source/modules/mediastream/MediaStream.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/modules/mediastream/MediaStream.cpp
diff --git a/Source/modules/mediastream/MediaStream.cpp b/Source/modules/mediastream/MediaStream.cpp
index 0c423778660d3aede8590f5889d8611f57179f90..f66b41b3abddacb55020c1b67b337e17d59f662e 100644
--- a/Source/modules/mediastream/MediaStream.cpp
+++ b/Source/modules/mediastream/MediaStream.cpp
@@ -181,21 +181,21 @@ void MediaStream::removeTrack(PassRefPtr<MediaStreamTrack> prpTrack, ExceptionSt
RefPtr<MediaStreamTrack> track = prpTrack;
- size_t pos = notFound;
+ size_t pos = kNotFound;
switch (track->component()->source()->type()) {
case MediaStreamSource::TypeAudio:
pos = m_audioTracks.find(track);
- if (pos != notFound)
+ if (pos != kNotFound)
m_audioTracks.remove(pos);
break;
case MediaStreamSource::TypeVideo:
pos = m_videoTracks.find(track);
- if (pos != notFound)
+ if (pos != kNotFound)
m_videoTracks.remove(pos);
break;
}
- if (pos == notFound)
+ if (pos == kNotFound)
return;
m_descriptor->removeComponent(track->component());
@@ -316,14 +316,14 @@ void MediaStream::removeRemoteTrack(MediaStreamComponent* component)
break;
}
- size_t index = notFound;
+ size_t index = kNotFound;
for (size_t i = 0; i < tracks->size(); ++i) {
if ((*tracks)[i]->component() == component) {
index = i;
break;
}
}
- if (index == notFound)
+ if (index == kNotFound)
return;
m_descriptor->removeComponent(component);
« no previous file with comments | « Source/modules/mediasource/WebKitSourceBufferList.cpp ('k') | Source/modules/mediastream/RTCPeerConnection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698