diff options
author | 2016-05-03 14:00:39 -0700 | |
---|---|---|
committer | 2016-05-03 17:43:14 -0700 | |
commit | d9cdadb38229e84f83c56ff2fe195a6a6ef535c3 (patch) | |
tree | ff7cbf5e850d88de57182b7f45f8bc0f92c46c87 | |
parent | 8a414ededd8b48a07de5faac03cc473ce5a42735 (diff) |
Fix google-explicit-constructor warnings.
Bug: 28341362
Change-Id: Icd42a3b0043647fd4c094e8fe195ca0f94445de9
-rw-r--r-- | libs/gui/tests/SurfaceTextureClient_test.cpp | 2 | ||||
-rw-r--r-- | libs/gui/tests/SurfaceTextureGL_test.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/gui/tests/SurfaceTextureClient_test.cpp b/libs/gui/tests/SurfaceTextureClient_test.cpp index 1a50b2480d..2e56419ebf 100644 --- a/libs/gui/tests/SurfaceTextureClient_test.cpp +++ b/libs/gui/tests/SurfaceTextureClient_test.cpp @@ -519,7 +519,7 @@ TEST_F(SurfaceTextureClientTest, DISABLED_SurfaceTextureSyncModeWaitRetire) { return false; } public: - MyThread(const sp<GLConsumer>& mST) + explicit MyThread(const sp<GLConsumer>& mST) : mST(mST), mBufferRetired(false) { ctx = eglGetCurrentContext(); sur = eglGetCurrentSurface(EGL_DRAW); diff --git a/libs/gui/tests/SurfaceTextureGL_test.cpp b/libs/gui/tests/SurfaceTextureGL_test.cpp index fad133fcb8..bf87061f74 100644 --- a/libs/gui/tests/SurfaceTextureGL_test.cpp +++ b/libs/gui/tests/SurfaceTextureGL_test.cpp @@ -426,7 +426,7 @@ TEST_F(SurfaceTextureGLTest, DisconnectStressTest) { class ProducerThread : public Thread { public: - ProducerThread(const sp<ANativeWindow>& anw): + explicit ProducerThread(const sp<ANativeWindow>& anw): mANW(anw) { } @@ -603,7 +603,7 @@ TEST_F(SurfaceTextureGLTest, CroppedScalingMode) { TEST_F(SurfaceTextureGLTest, AbandonUnblocksDequeueBuffer) { class ProducerThread : public Thread { public: - ProducerThread(const sp<ANativeWindow>& anw): + explicit ProducerThread(const sp<ANativeWindow>& anw): mANW(anw), mDequeueError(NO_ERROR) { } |