diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-02-13 13:12:03 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-02-13 14:07:10 +0100 |
commit | a71c95eda2e941f97286b75f10634c3516e6eb68 (patch) | |
tree | 18db2b16c1f36aae1c556b3fc1d4dccbdbb7833d | |
parent | 6651813b9b0b372319f51723f63692907d70e787 (diff) |
Assistant/remotecontrol example: Fix deprecation warning
Use {} to initialize QFLags, fixing:
remotecontrol.h:67:70: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
Change-Id: I0a29d15312c00e5efa203121c28e170e109bc7c0
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r-- | examples/assistant/remotecontrol/remotecontrol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/assistant/remotecontrol/remotecontrol.h b/examples/assistant/remotecontrol/remotecontrol.h index 40e370f71..f59ffb7aa 100644 --- a/examples/assistant/remotecontrol/remotecontrol.h +++ b/examples/assistant/remotecontrol/remotecontrol.h @@ -64,7 +64,7 @@ class RemoteControl : public QMainWindow Q_OBJECT public: - RemoteControl(QWidget *parent = nullptr, Qt::WindowFlags flags = 0); + RemoteControl(QWidget *parent = nullptr, Qt::WindowFlags flags = {}); ~RemoteControl(); private: |