From 7591758968121d6b59bb090e8f1e6ca65ffa10d8 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 9 Dec 2018 05:36:10 +0100 Subject: Fix clang warnings Use nullptr, add an explicit cast and remove an unused variable. --- filedisplay.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'filedisplay.h') diff --git a/filedisplay.h b/filedisplay.h index ef59af8..284c06d 100644 --- a/filedisplay.h +++ b/filedisplay.h @@ -15,7 +15,7 @@ class FileData; class FileDisplay : public QDialog { Q_OBJECT public: - explicit FileDisplay(QWidget *parent = 0, Qt::WindowFlags f = 0); + explicit FileDisplay(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr); ~FileDisplay(); void setFileData(const QString &fullPath, const QString &md5Sum); @@ -31,7 +31,7 @@ class FileDisplay : public QDialog { class DBData : public QWidget { Q_OBJECT public: - explicit DBData(QWidget *parent = 0, Qt::WindowFlags f = 0); + explicit DBData(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr); void setFileData(const QString &fullPath, const QString &md5Sum); private: @@ -46,7 +46,7 @@ class DBData : public QWidget { class FileData : public QWidget { Q_OBJECT public: - explicit FileData(QWidget *parent = 0, Qt::WindowFlags f = 0); + explicit FileData(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr); ~FileData(); void setFileData(const QString &fullPath); -- cgit v1.2.3-70-g09d2