diff --git a/src/WindowManager.cpp b/src/WindowManager.cpp index 6782ae2..e777df5 100644 --- a/src/WindowManager.cpp +++ b/src/WindowManager.cpp @@ -3,6 +3,7 @@ #include "WindowManager.h" +#include #include #include #include diff --git a/src/model/SubaddressView.h b/src/model/SubaddressView.h index d0206c7..8e23905 100644 --- a/src/model/SubaddressView.h +++ b/src/model/SubaddressView.h @@ -6,7 +6,6 @@ #include #include -#include #include class SubaddressView : public QTreeView diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index bff2204..1876dfc 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -1,12 +1,13 @@ // SPDX-License-Identifier: BSD-3-Clause // SPDX-FileCopyrightText: 2020-2023 The Monero Project +#include #include -#include #include #include #include #include +#include #include "constants.h" #include "networktype.h" @@ -25,7 +26,7 @@ bool fileExists(const QString &path) { QByteArray fileOpen(const QString &path) { QFile file(path); if (!file.open(QFile::ReadOnly | QFile::Text)) { - return QByteArray(); + return {}; } QByteArray data = file.readAll(); @@ -37,7 +38,7 @@ QByteArray fileOpenQRC(const QString &path) { QFile file(path); if (!file.open(QIODevice::ReadOnly)) { qDebug() << "error: " << file.errorString(); - return QByteArray(); + return {}; } QByteArray data = file.readAll(); diff --git a/src/utils/Utils.h b/src/utils/Utils.h index ed818ab..bd4e77f 100644 --- a/src/utils/Utils.h +++ b/src/utils/Utils.h @@ -6,7 +6,6 @@ #include #include -#include #include #include "libwalletqt/Wallet.h" diff --git a/src/utils/nodes.h b/src/utils/nodes.h index c7d6285..b6357e4 100644 --- a/src/utils/nodes.h +++ b/src/utils/nodes.h @@ -6,9 +6,7 @@ #include #include -#include -#include -#include +#include #include "model/NodeModel.h" #include "utils/Utils.h" diff --git a/src/utils/os/tails.h b/src/utils/os/tails.h index 1948685..bcf4fa8 100644 --- a/src/utils/os/tails.h +++ b/src/utils/os/tails.h @@ -4,9 +4,6 @@ #ifndef TAILSOS_H #define TAILSOS_H -#include - - class TailsOS { public: diff --git a/src/utils/textedit.cpp b/src/utils/textedit.cpp index 30a74b9..aca282b 100644 --- a/src/utils/textedit.cpp +++ b/src/utils/textedit.cpp @@ -53,7 +53,6 @@ #include #include #include -#include #include #include diff --git a/src/widgets/PayToEdit.cpp b/src/widgets/PayToEdit.cpp index 3fa24dd..1e095ec 100644 --- a/src/widgets/PayToEdit.cpp +++ b/src/widgets/PayToEdit.cpp @@ -8,7 +8,6 @@ #include #include #include -#include #include "libwalletqt/WalletManager.h" #include "qrcode/QrCodeUtils.h"