OSDN Git Service

Merge "simpleperf: support "--app" option in record/stat command." am: 9aa1dc2f30
[android-x86/system-extras.git] / 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; }