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

Unified Diff: content/public/common/speech_recognition_result.h

Issue 10386130: Coverity: Fix pass by value error in SpeechRecognitionHypothesis constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/speech_recognition_result.h
diff --git a/content/public/common/speech_recognition_result.h b/content/public/common/speech_recognition_result.h
index 57477bf2e78c7c2b680f4246d1ba74a48a85695e..8ce8f7446ad747d97ba72d4f8a082beff435eb57 100644
--- a/content/public/common/speech_recognition_result.h
+++ b/content/public/common/speech_recognition_result.h
@@ -20,7 +20,7 @@ struct SpeechRecognitionHypothesis {
SpeechRecognitionHypothesis() : confidence(0.0) {}
- SpeechRecognitionHypothesis(const string16 utterance_value,
+ SpeechRecognitionHypothesis(const string16& utterance_value,
double confidence_value)
: utterance(utterance_value),
confidence(confidence_value) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698