From 5a9905a62bf819d9eca4a7439ee51a8b5d12ef9d Mon Sep 17 00:00:00 2001 From: Daniel Zheng Date: Tue, 23 May 2023 10:51:01 -0700 Subject: [PATCH] Fixing constructors to match header files Constructor in cpp file doesn't match header file Test: m fastboot, fastboot flashall -w Change-Id: I2c720bb594efca5af1e5a374277543a522ced5ef --- fastboot/task.cpp | 4 ++-- fastboot/task.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fastboot/task.cpp b/fastboot/task.cpp index ce46e91d5..e98effb26 100644 --- a/fastboot/task.cpp +++ b/fastboot/task.cpp @@ -26,9 +26,9 @@ #include "util.h" using namespace std::string_literals; -FlashTask::FlashTask(const std::string& _slot, const std::string& _pname, const std::string& _fname, +FlashTask::FlashTask(const std::string& slot, const std::string& pname, const std::string& fname, const bool apply_vbmeta) - : pname_(_pname), fname_(_fname), slot_(_slot), apply_vbmeta_(apply_vbmeta) {} + : pname_(pname), fname_(fname), slot_(slot), apply_vbmeta_(apply_vbmeta) {} void FlashTask::Run() { auto flash = [&](const std::string& partition) { diff --git a/fastboot/task.h b/fastboot/task.h index 34e3e92aa..d113f18d5 100644 --- a/fastboot/task.h +++ b/fastboot/task.h @@ -118,7 +118,7 @@ class ResizeTask : public Task { class DeleteTask : public Task { public: - DeleteTask(const FlashingPlan* _fp, const std::string& _pname); + DeleteTask(const FlashingPlan* fp, const std::string& pname); void Run() override; private: