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

Unified Diff: Source/modules/speech/SpeechRecognitionResult.cpp

Issue 884973003: Extend PlatformSpeechSynthesizerMock with an utterance queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor test tidying Created 5 years, 11 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/speech/SpeechRecognitionResult.cpp
diff --git a/Source/modules/speech/SpeechRecognitionResult.cpp b/Source/modules/speech/SpeechRecognitionResult.cpp
index 7e856174d948422948f13d681fe98df837dd364f..38f3c55242f2b4b585c67577d1f78fb87b431359 100644
--- a/Source/modules/speech/SpeechRecognitionResult.cpp
+++ b/Source/modules/speech/SpeechRecognitionResult.cpp
@@ -37,9 +37,9 @@ SpeechRecognitionResult* SpeechRecognitionResult::create(const HeapVector<Member
SpeechRecognitionAlternative* SpeechRecognitionResult::item(unsigned index)
{
if (index >= m_alternatives.size())
- return 0;
+ return nullptr;
- return m_alternatives[index].get();
+ return m_alternatives[index];
}
SpeechRecognitionResult::SpeechRecognitionResult(const HeapVector<Member<SpeechRecognitionAlternative>>& alternatives, bool final)
« no previous file with comments | « Source/modules/speech/SpeechRecognitionEvent.h ('k') | Source/modules/speech/SpeechRecognitionResultList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698