diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-04-25 14:12:26 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-04-25 14:12:26 -0700 |
commit | 56ec08cdb153983b87c4c11db0c1b87859c1e3d3 (patch) | |
tree | 43e2640b0e2c84751640a1af523d4380838ec01b /memory_replay | |
parent | 0add9c5b35041af781e1433ae0790167e7b3277f (diff) | |
download | extras-56ec08cdb153983b87c4c11db0c1b87859c1e3d3.tar.gz |
Fix google-explicit-constructor warnings.
Bug: 28341362
Change-Id: I1825b4e58c7c82e247a3be9cbe1139fa2b79f151
Diffstat (limited to 'memory_replay')
-rw-r--r-- | memory_replay/Action.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/memory_replay/Action.cpp b/memory_replay/Action.cpp index c9671e17..216ff9da 100644 --- a/memory_replay/Action.cpp +++ b/memory_replay/Action.cpp @@ -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; } |