OSDN Git Service

Fix google-explicit-constructor warnings.
authorChih-Hung Hsieh <chh@google.com>
Mon, 25 Apr 2016 21:12:26 +0000 (14:12 -0700)
committerChih-Hung Hsieh <chh@google.com>
Mon, 25 Apr 2016 21:12:26 +0000 (14:12 -0700)
Bug: 28341362
Change-Id: I1825b4e58c7c82e247a3be9cbe1139fa2b79f151

memory_replay/Action.cpp

index c9671e1..216ff9d 100644 (file)
@@ -47,7 +47,7 @@ class EndThreadAction : public Action {
 
 class AllocAction : public Action {
  public:
-  AllocAction(uintptr_t key_pointer) : key_pointer_(key_pointer) {}
+  explicit AllocAction(uintptr_t key_pointer) : key_pointer_(key_pointer) {}
 
  protected:
   uintptr_t key_pointer_ = 0;
@@ -152,7 +152,7 @@ class MemalignAction : public AllocAction {
 
 class FreeAction : public AllocAction {
  public:
-  FreeAction(uintptr_t key_pointer) : AllocAction(key_pointer) {
+  explicit FreeAction(uintptr_t key_pointer) : AllocAction(key_pointer) {
   }
 
   bool DoesFree() override { return key_pointer_ != 0; }