From 6f04e4ca46e6f2dcd3eda63529a1bbd915f7676b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 28 Dec 2018 03:02:57 +0100 Subject: clang-tidy fixes only Maybe global `-Wcomma' is too harsh. There should be no functional changes whatsoever. --- variant/default/main.cpp | 2 +- variant/default/new_file_dialog.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'variant/default') diff --git a/variant/default/main.cpp b/variant/default/main.cpp index 09bb5e2a..0038583b 100644 --- a/variant/default/main.cpp +++ b/variant/default/main.cpp @@ -5,7 +5,7 @@ # include #endif -#if defined Q_CREATOR_RUN +#ifdef __clang__ # pragma GCC diagnostic ignored "-Wmain" #endif diff --git a/variant/default/new_file_dialog.h b/variant/default/new_file_dialog.h index 5669e4a9..7244e524 100644 --- a/variant/default/new_file_dialog.h +++ b/variant/default/new_file_dialog.h @@ -11,7 +11,7 @@ class new_file_dialog : public QDialog { Q_OBJECT public: - new_file_dialog(QWidget* parent = 0); + new_file_dialog(QWidget* parent = nullptr); bool is_ok(QString& name_); private: -- cgit v1.2.3