From bc4039bc49c4b2effe2884aa6cd02cbdd1e8f0ba Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Thu, 31 Aug 2023 13:15:44 +0200 Subject: clang-format -i src/*.cpp src/*.h --- src/keygendialog.cpp | 3 +-- src/mainwindow.cpp | 3 ++- src/pass.cpp | 2 +- src/qprogressindicator.cpp | 4 ++-- src/qprogressindicator.h | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/keygendialog.cpp b/src/keygendialog.cpp index ef50f434..ba1efdb0 100644 --- a/src/keygendialog.cpp +++ b/src/keygendialog.cpp @@ -88,8 +88,7 @@ void KeygenDialog::replace(const QString &key, const QString &value) { #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) const QStringList lines = expert.split(newLines, Qt::SkipEmptyParts); #else - const QStringList lines = - expert.split(newLines, QString::SkipEmptyParts); + const QStringList lines = expert.split(newLines, QString::SkipEmptyParts); #endif for (QString line : lines) { line.replace(QRegularExpression(key + ":.*"), key + ": " + value); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 59d0a105..b39d3147 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -795,7 +795,8 @@ void MainWindow::on_profileBox_currentIndexChanged(QString name) { QtPassSettings::setProfile(name); - QtPassSettings::setPassStore(QtPassSettings::getProfiles().value(name).value("path")); + QtPassSettings::setPassStore( + QtPassSettings::getProfiles().value(name).value("path")); QtPassSettings::setPassSigningKey( QtPassSettings::getProfiles().value(name).value("signingKey")); ui->statusBar->showMessage(tr("Profile changed to %1").arg(name), 2000); diff --git a/src/pass.cpp b/src/pass.cpp index efa665dd..44f6401d 100644 --- a/src/pass.cpp +++ b/src/pass.cpp @@ -1,8 +1,8 @@ #include "pass.h" #include "qtpasssettings.h" #include -#include #include +#include #ifdef QT_DEBUG #include "debughelper.h" diff --git a/src/qprogressindicator.cpp b/src/qprogressindicator.cpp index 1a47a524..991fdfbe 100644 --- a/src/qprogressindicator.cpp +++ b/src/qprogressindicator.cpp @@ -13,8 +13,8 @@ * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, diff --git a/src/qprogressindicator.h b/src/qprogressindicator.h index 8071965d..2d7db91b 100644 --- a/src/qprogressindicator.h +++ b/src/qprogressindicator.h @@ -13,8 +13,8 @@ * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- cgit v1.2.3