summaryrefslogtreecommitdiffhomepage
path: root/variant
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-28 03:02:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-16 07:48:18 +0100
commit6f04e4ca46e6f2dcd3eda63529a1bbd915f7676b (patch)
tree9aeb1332980c4285396457ad9f278495064549b5 /variant
parent3be3bb256f3e9362f8889f0532f875c5ad3b41fb (diff)
clang-tidy fixes only
Maybe global `-Wcomma' is too harsh. There should be no functional changes whatsoever.
Diffstat (limited to 'variant')
-rw-r--r--variant/default/main.cpp2
-rw-r--r--variant/default/new_file_dialog.h2
2 files changed, 2 insertions, 2 deletions
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 <windows.h>
#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: