Skip to content

Commit

Permalink
chore: add const to ref in Update() and print ref value
Browse files Browse the repository at this point in the history
-

Log:
  • Loading branch information
kamiyadm authored and black-desk committed Jun 13, 2024
1 parent 80d3b53 commit 76c9989
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,10 @@ auto PackageManager::Update(const QVariantMap &parameters) noexcept -> QVariantM
auto taskPtr = std::make_shared<InstallTask>(taskID);
connect(taskPtr.get(), &InstallTask::TaskChanged, this, &PackageManager::TaskChanged);

auto reference = *ref;
auto newReference = *newRef;
const auto reference = *ref;
const auto newReference = *newRef;

qInfo() << "Before upgrade, old Ref: " << reference.toString() << " new Ref: " << newReference.toString();

auto develop = paras->package.packageManager1PackageModule.value_or("runtime") == "develop";

Expand Down

0 comments on commit 76c9989

Please sign in to comment.