diff options
Diffstat (limited to 'libutils/tests')
| -rw-r--r-- | libutils/tests/Looper_test.cpp | 2 | ||||
| -rw-r--r-- | libutils/tests/StrongPointer_test.cpp | 2 | ||||
| -rw-r--r-- | libutils/tests/TestHelpers.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libutils/tests/Looper_test.cpp b/libutils/tests/Looper_test.cpp index 17319e03f..8ebcfaf5a 100644 --- a/libutils/tests/Looper_test.cpp +++ b/libutils/tests/Looper_test.cpp @@ -76,7 +76,7 @@ public: int fd; int events; - StubCallbackHandler(int nextResult) : nextResult(nextResult), + explicit StubCallbackHandler(int nextResult) : nextResult(nextResult), callbackCount(0), fd(-1), events(-1) { } diff --git a/libutils/tests/StrongPointer_test.cpp b/libutils/tests/StrongPointer_test.cpp index f46d6d140..323a6f20a 100644 --- a/libutils/tests/StrongPointer_test.cpp +++ b/libutils/tests/StrongPointer_test.cpp @@ -23,7 +23,7 @@ using namespace android; class Foo : public LightRefBase<Foo> { public: - Foo(bool* deleted_check) : mDeleted(deleted_check) { + explicit Foo(bool* deleted_check) : mDeleted(deleted_check) { *mDeleted = false; } diff --git a/libutils/tests/TestHelpers.h b/libutils/tests/TestHelpers.h index d8e985e9c..6801cd739 100644 --- a/libutils/tests/TestHelpers.h +++ b/libutils/tests/TestHelpers.h @@ -60,7 +60,7 @@ class DelayedTask : public Thread { int mDelayMillis; public: - DelayedTask(int delayMillis) : mDelayMillis(delayMillis) { } + explicit DelayedTask(int delayMillis) : mDelayMillis(delayMillis) { } protected: virtual ~DelayedTask() { } |
