Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a9905a6 authored by Daniel Zheng's avatar Daniel Zheng
Browse files

Fixing constructors to match header files

Constructor in cpp file doesn't match header file

Test: m fastboot, fastboot flashall -w
Change-Id: I2c720bb594efca5af1e5a374277543a522ced5ef
parent 90bbf825
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {
+1 −1
Original line number Diff line number Diff line
@@ -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: