mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
run clang-format to apply new qualifier alignment
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit dde1d21cbc)
This commit is contained in:
parent
a09ad02150
commit
139da311ff
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue