summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>2026-04-09 13:16:16 +0200
committerGitHub <noreply@github.com>2026-04-09 13:16:16 +0200
commit662f0332950e5f93518ea2ed24a681e22d1eda88 (patch)
tree58a2fc2db84c20590f5846b3e68acdfb09c065a2
parent2043d9931cb9baf1eef23240ea6061fc40fee67d (diff)
[pre-commit.ci] Pre-commit autoupdate. (#2357)
* [pre-commit.ci] Pre-commit autoupdate. updates: - [github.com/pre-commit/mirrors-clang-format: v21.1.8 → v22.1.2](https://github.com/pre-commit/mirrors-clang-format/compare/v21.1.8...v22.1.2) * [pre-commit.ci] Auto fixes from pre-commit.com hooks. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
-rw-r--r--.pre-commit-config.yaml2
-rw-r--r--src/downloadlistview.cpp2
-rw-r--r--src/envsecurity.cpp6
-rw-r--r--src/nexusinterface.cpp8
-rw-r--r--src/pluginlist.cpp6
-rw-r--r--src/pluginlistview.cpp2
-rw-r--r--src/spawn.cpp14
7 files changed, 20 insertions, 20 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index eb8969cd..e880435c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -7,7 +7,7 @@ repos:
- id: check-merge-conflict
- id: check-case-conflict
- repo: https://github.com/pre-commit/mirrors-clang-format
- rev: v21.1.8
+ rev: v22.1.2
hooks:
- id: clang-format
'types_or': [c++, c]
diff --git a/src/downloadlistview.cpp b/src/downloadlistview.cpp
index f2677523..d9ee5620 100644
--- a/src/downloadlistview.cpp
+++ b/src/downloadlistview.cpp
@@ -333,7 +333,7 @@ void DownloadListView::keyPressEvent(QKeyEvent* event)
const int row = qobject_cast<QSortFilterProxyModel*>(model())
->mapToSource(currentIndex())
.row();
- auto state = m_Manager->getState(row);
+ auto state = m_Manager->getState(row);
if (state >= DownloadManager::STATE_READY) {
if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) {
issueInstall(row);
diff --git a/src/envsecurity.cpp b/src/envsecurity.cpp
index 914a70ba..92f59a2d 100644
--- a/src/envsecurity.cpp
+++ b/src/envsecurity.cpp
@@ -424,9 +424,9 @@ MallocPtr<SECURITY_DESCRIPTOR> getSecurityDescriptor(const QString& path)
BOOL ret = FALSE;
DWORD length = 0;
- ret = ::GetFileSecurityW(wpath.c_str(),
- DACL_SECURITY_INFORMATION | OWNER_SECURITY_INFORMATION,
- nullptr, 0, &length);
+ ret = ::GetFileSecurityW(wpath.c_str(),
+ DACL_SECURITY_INFORMATION | OWNER_SECURITY_INFORMATION,
+ nullptr, 0, &length);
if (!ret || length == 0) {
const auto e = GetLastError();
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp
index fa4dd729..1486a59c 100644
--- a/src/nexusinterface.cpp
+++ b/src/nexusinterface.cpp
@@ -954,10 +954,10 @@ void NexusInterface::nextRequest()
case NXMRequestInfo::TYPE_TOGGLEENDORSEMENT: {
QString endorse = info.m_Endorse ? "endorse" : "abstain";
url = QString("%1/games/%2/mods/%3/%4")
- .arg(info.m_URL)
- .arg(info.m_GameName)
- .arg(info.m_ModID)
- .arg(endorse);
+ .arg(info.m_URL)
+ .arg(info.m_GameName)
+ .arg(info.m_ModID)
+ .arg(endorse);
postObject.insert("Version", info.m_ModVersion);
postData.setObject(postObject);
} break;
diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp
index a9512a1f..90785222 100644
--- a/src/pluginlist.cpp
+++ b/src/pluginlist.cpp
@@ -253,8 +253,8 @@ void PluginList::refresh(const QString& profileName,
continue;
}
- bool forceLoaded = Settings::instance().game().forceEnableCoreFiles() &&
- primaryPlugins.contains(filename, Qt::CaseInsensitive);
+ bool forceLoaded = Settings::instance().game().forceEnableCoreFiles() &&
+ primaryPlugins.contains(filename, Qt::CaseInsensitive);
bool forceEnabled = enabledPlugins.contains(filename, Qt::CaseInsensitive);
bool forceDisabled = loadOrderMechanismNone && !forceLoaded && !forceEnabled;
if (!lightPluginsAreSupported && filename.endsWith(".esl")) {
@@ -2020,7 +2020,7 @@ PluginList::ESPInfo::ESPInfo(const QString& name, bool forceLoaded, bool forceEn
isBlueprintFlagged = blueprintSupported &&
(isMasterFlagged || hasMasterExtension || hasLightExtension) &&
file.isBlueprint();
- hasNoRecords = file.isDummy();
+ hasNoRecords = file.isDummy();
formVersion = file.formVersion();
headerVersion = file.headerVersion();
diff --git a/src/pluginlistview.cpp b/src/pluginlistview.cpp
index a3485fc2..f8990a94 100644
--- a/src/pluginlistview.cpp
+++ b/src/pluginlistview.cpp
@@ -112,7 +112,7 @@ void PluginListView::updatePluginCount()
int activeCount = activeMasterCount + activeMediumMasterCount +
activeLightMasterCount + activeRegularCount;
- int totalCount = masterCount + mediumMasterCount + lightMasterCount + regularCount;
+ int totalCount = masterCount + mediumMasterCount + lightMasterCount + regularCount;
auto toolTip =
tr("<table cellspacing=\"6\">"
diff --git a/src/spawn.cpp b/src/spawn.cpp
index aad1e1cc..e9ff1276 100644
--- a/src/spawn.cpp
+++ b/src/spawn.cpp
@@ -288,7 +288,7 @@ confirmStartSteam(QWidget* parent, const SpawnParameters& sp, const QString& det
const auto mainText = QObject::tr("This program requires Steam");
const auto content = QObject::tr(
"Mod Organizer has detected that this program likely requires Steam to be "
- "running to function properly.");
+ "running to function properly.");
return MOBase::TaskDialog(parent, title)
.main(mainText)
@@ -310,10 +310,10 @@ QMessageBox::StandardButton confirmRestartAsAdminForSteam(QWidget* parent,
const auto mainText = QObject::tr("Steam is running as administrator");
const auto content = QObject::tr(
"Running Steam as administrator is typically unnecessary and can cause "
- "problems when Mod Organizer itself is not running as administrator."
- "\r\n\r\n"
- "You can restart Mod Organizer as administrator and try launching the "
- "program again.");
+ "problems when Mod Organizer itself is not running as administrator."
+ "\r\n\r\n"
+ "You can restart Mod Organizer as administrator and try launching the "
+ "program again.");
return MOBase::TaskDialog(parent, title)
.main(mainText)
@@ -337,8 +337,8 @@ bool eventLogNotRunning(QWidget* parent, const env::Service& s,
const auto mainText = QObject::tr("The Event Log service is not running");
const auto content = QObject::tr(
"The Windows Event Log service is not running. This can prevent USVFS from "
- "running properly and your mods may not be recognized by the program being "
- "launched.");
+ "running properly and your mods may not be recognized by the program being "
+ "launched.");
const auto r =
MOBase::TaskDialog(parent, title)