mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
refactor: Fix some clang-tidy warnings
- Mark single argument constructors as explicit - Remove unused functions - Avoid default parameters in virtual functions - Clean up includes - Do not call static methods through an instance - And some more...
This commit is contained in:
@@ -3,16 +3,12 @@
|
||||
|
||||
#include "swiftlauncher.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackcore/registermetadata.h"
|
||||
#include "blackcore/db/databasereaderconfig.h"
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/icons.h"
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QProcess>
|
||||
#include <QApplication>
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
#include <QCommandLineParser>
|
||||
|
||||
@@ -23,7 +19,6 @@ using namespace BlackCore::Db;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
//! [SwiftApplicationDemo]
|
||||
CGuiApplication::highDpiScreenSupport(CGuiApplication::scaleFactor(argc, argv));
|
||||
QApplication qa(argc, argv); // needed
|
||||
Q_UNUSED(qa)
|
||||
@@ -38,7 +33,6 @@ int main(int argc, char *argv[])
|
||||
a.gracefulShutdown();
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
//! [SwiftApplicationDemo]
|
||||
|
||||
CSwiftLauncher launcher;
|
||||
const int res = a.exec();
|
||||
|
||||
Reference in New Issue
Block a user