Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use only const auto in obvious pointer.
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Ayres <hello@camilasan.com>
camilasan committed Jul 3, 2024
1 parent 1006120 commit 1960a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/generalsettings.cpp
Original file line number Diff line number Diff line change
@@ -312,7 +312,7 @@ void GeneralSettings::slotUpdateInfo()
}

// Note: the sparkle-updater is not an OCUpdater
const auto *ocupdater = qobject_cast<OCUpdater *>(updater);
const auto ocupdater = qobject_cast<OCUpdater *>(updater);
if (ocupdater) {
connect(ocupdater, &OCUpdater::downloadStateChanged, this, &GeneralSettings::slotUpdateInfo, Qt::UniqueConnection);
connect(_ui->restartButton, &QAbstractButton::clicked, ocupdater, &OCUpdater::slotStartInstaller, Qt::UniqueConnection);

0 comments on commit 1960a7b

Please sign in to comment.