Index: content/public/common/speech_recognition_error.h |
diff --git a/content/public/common/speech_recognition_error.h b/content/public/common/speech_recognition_error.h |
index 10af480d9abf18c661655175c1bb2c71ebb71e95..e00a84e77dc1e6b27fd8120221d237f1b07d8de1 100644 |
--- a/content/public/common/speech_recognition_error.h |
+++ b/content/public/common/speech_recognition_error.h |
@@ -4,6 +4,7 @@ |
#ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ |
#define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_ERROR_H_ |
+#pragma once |
namespace content { |
@@ -37,13 +38,19 @@ struct CONTENT_EXPORT SpeechRecognitionError { |
SpeechRecognitionErrorCode code; |
SpeechAudioErrorDetails details; |
- SpeechRecognitionError(SpeechRecognitionErrorCode code_value) |
+ SpeechRecognitionError() |
+ : code(SPEECH_RECOGNITION_ERROR_NONE), |
+ details(SPEECH_AUDIO_ERROR_DETAILS_NONE) { |
+ } |
+ explicit SpeechRecognitionError(SpeechRecognitionErrorCode code_value) |
: code(code_value), |
- details(SPEECH_AUDIO_ERROR_DETAILS_NONE) {} |
+ details(SPEECH_AUDIO_ERROR_DETAILS_NONE) { |
+ } |
SpeechRecognitionError(SpeechRecognitionErrorCode code_value, |
SpeechAudioErrorDetails details_value) |
: code(code_value), |
- details(details_value) {} |
+ details(details_value) { |
+ } |
}; |
} // namespace content |