Skip to content

Commit 688a866

Browse files
[pre-commit.ci] Auto fixes from pre-commit.com hooks.
1 parent 12ce5af commit 688a866

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/downloadmanager.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ DirWatcherManager::Guard::~Guard()
193193
// drain queued events while still suspended so they are filtered out,
194194
// then release.
195195
//
196-
// TODO: find alternative, pumping the event loop from a destructor is a reentrancy hazard;
197-
// arbitrary slots may run during ~Guard.
196+
// TODO: find alternative, pumping the event loop from a destructor is a reentrancy
197+
// hazard; arbitrary slots may run during ~Guard.
198198
if (m_manager.m_suspendDepth == 1) {
199199
QCoreApplication::processEvents();
200200
}
@@ -599,8 +599,7 @@ bool DownloadManager::addDownload(QNetworkReply* reply, const QStringList& URLs,
599599
"different name.")
600600
.arg(baseName),
601601
QMessageBox::Yes | QMessageBox::No) == QMessageBox::No) {
602-
removePending(newDownload->m_FileInfo->gameName,
603-
newDownload->m_FileInfo->modID,
602+
removePending(newDownload->m_FileInfo->gameName, newDownload->m_FileInfo->modID,
604603
newDownload->m_FileInfo->fileID);
605604
reply->abort();
606605
reply->deleteLater();
@@ -682,8 +681,7 @@ void DownloadManager::startDownload(QNetworkReply* reply, DownloadInfo* newDownl
682681
{
683682
// coalesce the pending removal and the active append into one reset
684683
ModelResetGuard guard(*this);
685-
removePending(newDownload->m_FileInfo->gameName,
686-
newDownload->m_FileInfo->modID,
684+
removePending(newDownload->m_FileInfo->gameName, newDownload->m_FileInfo->modID,
687685
newDownload->m_FileInfo->fileID);
688686
m_ActiveDownloads.append(newDownload);
689687
}
@@ -745,7 +743,8 @@ void DownloadManager::addNXMDownload(const QString& url)
745743
}
746744

747745
for (auto tuple : m_PendingDownloads) {
748-
if (std::get<0>(tuple).compare(foundGame->gameShortName(), Qt::CaseInsensitive) == 0 &&
746+
if (std::get<0>(tuple).compare(foundGame->gameShortName(), Qt::CaseInsensitive) ==
747+
0 &&
749748
std::get<1>(tuple) == nxmInfo.modId() &&
750749
std::get<2>(tuple) == nxmInfo.fileId()) {
751750
const auto infoStr =

src/organizercore.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,8 @@ OrganizerCore::doInstall(const QString& archivePath, GuessedValue<QString> modNa
866866

867867
ModInfo::Ptr OrganizerCore::installDownload(int index, int priority)
868868
{
869-
DirWatcherManager::Guard dirWatcherGuard = m_DownloadManager.dirWatcher().scopedGuard();
869+
DirWatcherManager::Guard dirWatcherGuard =
870+
m_DownloadManager.dirWatcher().scopedGuard();
870871

871872
try {
872873
QString fileName = m_DownloadManager.getFilePath(index);

0 commit comments

Comments
 (0)