Skip to content

Commit

Permalink
cleaned up GUI includes based on include-what-you-use
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Oct 28, 2024
1 parent 1efa223 commit 45aeff3
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions gui/checkstatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <QDebug>
#include <QList>
#include <QSet>
#include <QtLogging>

CheckStatistics::CheckStatistics(QObject *parent)
: QObject(parent)
Expand Down
1 change: 0 additions & 1 deletion gui/cppchecklibrarydata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <QXmlStreamAttributes>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QtGlobal>

const unsigned int CppcheckLibraryData::Function::Arg::ANY = ~0U;
const unsigned int CppcheckLibraryData::Function::Arg::VARIADIC = ~1U;
Expand Down
1 change: 0 additions & 1 deletion gui/csvreport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <QDir>
#include <QFile>
#include <QList>
#include <QtGlobal>

CsvReport::CsvReport(const QString &filename) :
Report(filename)
Expand Down
1 change: 1 addition & 0 deletions gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <QStringList>
#include <QTextStream>
#include <QtTest>
#include <QtLogging>

const QString TestCppcheckLibraryData::TempCfgFile = "./tmp.cfg";

Expand Down
1 change: 1 addition & 0 deletions gui/threadhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <QSettings>
#include <QTextStream>
#include <QVariant>
#include <QtLogging>

ThreadHandler::ThreadHandler(QObject *parent) :
QObject(parent)
Expand Down
4 changes: 4 additions & 0 deletions gui/translationhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
#include <QLocale>
#include <QMessageBox>
#include <QTranslator>
#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
#include <QtPreprocessorSupport>
#else
#include <QtGlobal>
#endif


// Provide own translations for standard buttons. This (garbage) code is needed to enforce them to appear in .ts files even after "lupdate gui.pro"
Expand Down
1 change: 1 addition & 0 deletions gui/xmlreportv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <QXmlStreamAttributes>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QtLogging>

static const QString ResultElementName = "results";
static const QString CppcheckElementName = "cppcheck";
Expand Down
1 change: 1 addition & 0 deletions tools/triage/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#include <QTextStream>
#include <QTreeView>
#include <QtCore>
#include <QtLogging>

class QWidget;

Expand Down

0 comments on commit 45aeff3

Please sign in to comment.