summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chih-hung Hsieh <chh@google.com> 2016-08-30 22:21:34 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-08-30 22:21:34 +0000
commitfeee33ce2c8d966e65f7094b836eca374b026b10 (patch)
treee4c9f651feef9d0d45f44c6bf48c8999a0b209c4
parentcfc9f5d03d47c11fa29846822706a8bbd9d76503 (diff)
parentae1aadc04f9cee280c3c328a533e2ceeb4b71d47 (diff)
Merge "Fix google-explicit-constructor warnings in soundpool."
-rw-r--r--media/jni/soundpool/SoundPool.h2
-rw-r--r--media/jni/soundpool/SoundPoolThread.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/media/jni/soundpool/SoundPool.h b/media/jni/soundpool/SoundPool.h
index 98d2fa25207c..aff101f06748 100644
--- a/media/jni/soundpool/SoundPool.h
+++ b/media/jni/soundpool/SoundPool.h
@@ -37,7 +37,7 @@ class SoundPool;
// for queued events
class SoundPoolEvent {
public:
- SoundPoolEvent(int msg, int arg1=0, int arg2=0) :
+ explicit SoundPoolEvent(int msg, int arg1=0, int arg2=0) :
mMsg(msg), mArg1(arg1), mArg2(arg2) {}
int mMsg;
int mArg1;
diff --git a/media/jni/soundpool/SoundPoolThread.h b/media/jni/soundpool/SoundPoolThread.h
index 9096aeb3e30e..7b3e1dda0a23 100644
--- a/media/jni/soundpool/SoundPoolThread.h
+++ b/media/jni/soundpool/SoundPoolThread.h
@@ -40,7 +40,7 @@ public:
*/
class SoundPoolThread {
public:
- SoundPoolThread(SoundPool* SoundPool);
+ explicit SoundPoolThread(SoundPool* SoundPool);
~SoundPoolThread();
void loadSample(int sampleID);
void quit();