From 211a7942efa363bf5cd2051bc52b13f22c2cb58c Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 17 Feb 2024 18:11:58 +0100 Subject: [PATCH] Apply clang-format --- syncthingconnector/syncthingnotifier.cpp | 3 ++- syncthingwidgets/misc/syncthinglauncher.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/syncthingconnector/syncthingnotifier.cpp b/syncthingconnector/syncthingnotifier.cpp index bb4f438..2662dea 100644 --- a/syncthingconnector/syncthingnotifier.cpp +++ b/syncthingconnector/syncthingnotifier.cpp @@ -42,7 +42,8 @@ SyncthingNotifier::SyncthingNotifier(const SyncthingConnection &connection, QObj , m_previousStatus(SyncthingStatus::Disconnected) , m_ignoreInavailabilityAfterStart(15) , m_initialized(false) - , m_logOnStderr(qEnvironmentVariableIntValue(PROJECT_VARNAME_UPPER "_LOG_ALL") || qEnvironmentVariableIntValue(PROJECT_VARNAME_UPPER "_LOG_NOTIFICATIONS")) + , m_logOnStderr( + qEnvironmentVariableIntValue(PROJECT_VARNAME_UPPER "_LOG_ALL") || qEnvironmentVariableIntValue(PROJECT_VARNAME_UPPER "_LOG_NOTIFICATIONS")) { connect(&connection, &SyncthingConnection::statusChanged, this, &SyncthingNotifier::handleStatusChangedEvent); connect(&connection, &SyncthingConnection::dirCompleted, this, &SyncthingNotifier::emitSyncComplete); diff --git a/syncthingwidgets/misc/syncthinglauncher.cpp b/syncthingwidgets/misc/syncthinglauncher.cpp index 7ebdc5e..917adca 100644 --- a/syncthingwidgets/misc/syncthinglauncher.cpp +++ b/syncthingwidgets/misc/syncthinglauncher.cpp @@ -69,7 +69,8 @@ SyncthingLauncher::SyncthingLauncher(QObject *parent) connect(networkInformation, &QNetworkInformation::isMeteredChanged, this, [this](bool isMetered) { setNetworkConnectionMetered(isMetered); }); setNetworkConnectionMetered(networkInformation->isMetered()); } else { - std::cerr << EscapeCodes::Phrases::Error << "Unable to load network information backend to monitor metered connections, available backends:" << EscapeCodes::Phrases::End; + std::cerr << EscapeCodes::Phrases::Error + << "Unable to load network information backend to monitor metered connections, available backends:" << EscapeCodes::Phrases::End; const auto availableBackends = QNetworkInformation::availableBackends(); if (availableBackends.isEmpty()) { std::cerr << "none\n";