Bug 1162699 followup: Add 'override' keyword to overriding methods on FakeSynthCallback. rs=ehsan
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 15 May 2015 11:57:03 -0700
changeset 244123 fe22c89a36d58db9721be20437834175ab568fbd
parent 244122 9f7b7d427d1c0dda0ce792f9ab345a388258c14a
child 244124 43404a28955dd15f853148130e4cfbb78d31349e
push id28766
push userphilringnalda@gmail.com
push dateSat, 16 May 2015 15:50:57 +0000
treeherdermozilla-central@e00b8970afbd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1162699
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1162699 followup: Add 'override' keyword to overriding methods on FakeSynthCallback. rs=ehsan
dom/media/webspeech/synth/test/nsFakeSynthServices.cpp
--- a/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp
+++ b/dom/media/webspeech/synth/test/nsFakeSynthServices.cpp
@@ -59,35 +59,35 @@ static const VoiceDetails sIndirectVoice
 // FakeSynthCallback
 class FakeSynthCallback : public nsISpeechTaskCallback
 {
 public:
   explicit FakeSynthCallback(nsISpeechTask* aTask) : mTask(aTask) { }
   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
   NS_DECL_CYCLE_COLLECTION_CLASS_AMBIGUOUS(FakeSynthCallback, nsISpeechTaskCallback)
 
-  NS_IMETHOD OnPause()
+  NS_IMETHOD OnPause() override
   {
     if (mTask) {
       mTask->DispatchPause(1.5, 1);
     }
 
     return NS_OK;
   }
 
-  NS_IMETHOD OnResume()
+  NS_IMETHOD OnResume() override
   {
     if (mTask) {
       mTask->DispatchResume(1.5, 1);
     }
 
     return NS_OK;
   }
 
-  NS_IMETHOD OnCancel()
+  NS_IMETHOD OnCancel() override
   {
     if (mTask) {
       mTask->DispatchEnd(1.5, 1);
     }
 
     return NS_OK;
   }