aboutsummaryrefslogtreecommitdiff
path: root/src/forms/aboutdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/forms/aboutdialog.cpp')
-rw-r--r--src/forms/aboutdialog.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/forms/aboutdialog.cpp b/src/forms/aboutdialog.cpp
index 89cb23e..5b788bd 100644
--- a/src/forms/aboutdialog.cpp
+++ b/src/forms/aboutdialog.cpp
@@ -11,10 +11,6 @@
#include "version.h"
#include <boost/version.hpp>
-// The extra level of indirection will allow the preprocessor to expand the macros before they are converted to strings.
-#define STRINGIFY(x) #x
-#define STR(x) STRINGIFY(x)
-
// compiler
// clang also defines __GNUC__, so we need to check for clang first
#if defined(__clang__)
@@ -32,7 +28,10 @@ AboutDialog::AboutDialog(QWidget *parent)
setAttribute(Qt::WA_DeleteOnClose, true);
ui->setupUi(this);
- ui->icon->setPixmap(qApp->windowIcon().pixmap(72, 72));
+ // clang-tidy: don't use static_cast to downcast from a base to a derived class,
+ // use dynamic_cast instead
+ //ui->icon->setPixmap(qApp->windowIcon().pixmap(72, 72));
+ ui->icon->setPixmap(dynamic_cast<QApplication *>(QApplication::instance())->windowIcon().pixmap(72, 72));
auto *aboutLabel = new QLabel(this);
aboutLabel->setWordWrap(true);