From 139da311ff08f0a5df05a64dbdec14395c7afc51 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Wed, 25 Feb 2026 12:31:31 +0500 Subject: [PATCH] run clang-format to apply new qualifier alignment Signed-off-by: Octol1ttle (cherry picked from commit dde1d21cbc90192e23ae002c2cee45298599cc0e) --- launcher/Application.cpp | 2 +- launcher/Application.h | 2 +- launcher/InstanceList.cpp | 6 +++--- launcher/Version.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 1daf3f01c..07797d4f2 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -2005,7 +2005,7 @@ void Application::triggerUpdateCheck() } } -QUrl Application::normalizeImportUrl(QString const& url) +QUrl Application::normalizeImportUrl(const QString& url) { auto local_file = QFileInfo(url); if (local_file.exists()) { diff --git a/launcher/Application.h b/launcher/Application.h index b7ef77afd..3811c4188 100644 --- a/launcher/Application.h +++ b/launcher/Application.h @@ -200,7 +200,7 @@ class Application : public QApplication { bool updaterEnabled(); QString updaterBinaryName(); - QUrl normalizeImportUrl(QString const& url); + QUrl normalizeImportUrl(const QString& url); signals: void updateAllowedChanged(bool status); diff --git a/launcher/InstanceList.cpp b/launcher/InstanceList.cpp index 98b420c31..c4ac3027f 100644 --- a/launcher/InstanceList.cpp +++ b/launcher/InstanceList.cpp @@ -565,7 +565,7 @@ InstanceList::InstListError InstanceList::loadList() void InstanceList::updateTotalPlayTime() { totalPlayTime = 0; - for (auto const& itr : m_instances) { + for (const auto& itr : m_instances) { totalPlayTime += itr->totalTimePlayed(); } } @@ -1033,9 +1033,9 @@ QString InstanceList::getStagedInstancePath() } bool InstanceList::commitStagedInstance(const QString& path, - InstanceName const& instanceName, + const InstanceName& instanceName, QString groupName, - InstanceTask const& commiting) + const InstanceTask& commiting) { if (groupName.isEmpty() && !groupName.isNull()) groupName = QString(); diff --git a/launcher/Version.h b/launcher/Version.h index 4b5ea7119..9933fecc3 100644 --- a/launcher/Version.h +++ b/launcher/Version.h @@ -115,7 +115,7 @@ class Version { inline bool operator<(const Section& other) const { - static auto unequal_is_less = [](Section const& non_null) -> bool { + static auto unequal_is_less = [](const Section& non_null) -> bool { if (non_null.m_stringPart.isEmpty()) return non_null.m_numPart == 0; return (non_null.m_stringPart != QLatin1Char('.')) && non_null.isPreRelease();