Fix cpplint runtime/explicit issues
Change-Id: I352ba0b427f1ff9b22887693952b180eae0839ba
diff --git a/runtime/barrier_test.cc b/runtime/barrier_test.cc
index 55d2d3d..d26ae9e 100644
--- a/runtime/barrier_test.cc
+++ b/runtime/barrier_test.cc
@@ -69,9 +69,9 @@
Thread* self = Thread::Current();
ThreadPool thread_pool(num_threads);
Barrier barrier(0);
- AtomicInteger count1 = 0;
- AtomicInteger count2 = 0;
- AtomicInteger count3 = 0;
+ AtomicInteger count1(0);
+ AtomicInteger count2(0);
+ AtomicInteger count3(0);
for (int32_t i = 0; i < num_threads; ++i) {
thread_pool.AddTask(self, new CheckWaitTask(&barrier, &count1, &count2, &count3));
}
@@ -126,7 +126,7 @@
Thread* self = Thread::Current();
ThreadPool thread_pool(num_threads);
Barrier barrier(0);
- AtomicInteger count = 0;
+ AtomicInteger count(0);
const int32_t num_tasks = num_threads * 4;
const int32_t num_sub_tasks = 128;
for (int32_t i = 0; i < num_tasks; ++i) {