Bug 1173016 - Bustage fix: mark BasicWaveformCache's ctor as `explicit`, on a CLOSED TREE.
authorPaul Adenot <paul@paul.cx>
Mon, 06 Jul 2015 14:27:18 +0200
changeset 275867 01d7e27c58332ab8fd7768921034bd895c761daf
parent 275866 911c598a9ef2c82458c67fc43da0512ce9064114
child 275868 a2c04ccd34c039f7091965991da6c970d4fc3fda
push id3246
push usergijskruitbosch@gmail.com
push dateTue, 07 Jul 2015 09:06:38 +0000
bugs1173016
milestone42.0a1
Bug 1173016 - Bustage fix: mark BasicWaveformCache's ctor as `explicit`, on a CLOSED TREE.
dom/media/webaudio/AudioContext.h
--- a/dom/media/webaudio/AudioContext.h
+++ b/dom/media/webaudio/AudioContext.h
@@ -72,17 +72,17 @@ class Promise;
 enum class OscillatorType : uint32_t;
 
 // This is addrefed by the OscillatorNodeEngine on the main thread
 // and then used from the MSG thread.
 // It can be released either from the graph thread or the main thread.
 class BasicWaveFormCache
 {
 public:
-  BasicWaveFormCache(uint32_t aSampleRate);
+  explicit BasicWaveFormCache(uint32_t aSampleRate);
   NS_INLINE_DECL_THREADSAFE_REFCOUNTING(BasicWaveFormCache)
   WebCore::PeriodicWave* GetBasicWaveForm(OscillatorType aType);
 private:
   ~BasicWaveFormCache();
   nsRefPtr<WebCore::PeriodicWave> mSawtooth;
   nsRefPtr<WebCore::PeriodicWave> mSquare;
   nsRefPtr<WebCore::PeriodicWave> mTriangle;
   uint32_t mSampleRate;