[LyX/master] Address some deprecation warnings
Juergen Spitzmueller
spitz at lyx.org
Sat Feb 13 14:21:24 UTC 2021
commit f8021672ad60ac64c381862db4095fa32b736f6f
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sat Feb 13 15:22:26 2021 +0100
Address some deprecation warnings
---
src/frontends/qt/DockView.h | 7 +++----
src/frontends/qt/FindAndReplace.h | 2 +-
src/frontends/qt/GuiProgressView.h | 2 +-
src/frontends/qt/GuiSetBorder.h | 2 +-
src/frontends/qt/GuiSpellchecker.h | 2 +-
src/frontends/qt/GuiViewSource.h | 2 +-
6 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/frontends/qt/DockView.h b/src/frontends/qt/DockView.h
index 9c3a9e7..aef0c82 100644
--- a/src/frontends/qt/DockView.h
+++ b/src/frontends/qt/DockView.h
@@ -33,10 +33,9 @@ public:
DockView(GuiView & parent, ///< the main window where to dock.
QString const & name, ///< dialog identifier.
QString const & title, ///< dialog title.
- Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of
- ///the dock (and
- ///also drawer)
- Qt::WindowFlags flags = 0);
+ Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock
+ /// (and also drawer)
+ Qt::WindowFlags flags = {});
virtual ~DockView() {}
diff --git a/src/frontends/qt/FindAndReplace.h b/src/frontends/qt/FindAndReplace.h
index 169530a..565db5a 100644
--- a/src/frontends/qt/FindAndReplace.h
+++ b/src/frontends/qt/FindAndReplace.h
@@ -79,7 +79,7 @@ public:
FindAndReplace(
GuiView & parent, ///< the main window where to dock.
Qt::DockWidgetArea area = Qt::RightDockWidgetArea, ///< Position of the dock (and also drawer)
- Qt::WindowFlags flags = 0);
+ Qt::WindowFlags flags = {});
~FindAndReplace();
diff --git a/src/frontends/qt/GuiProgressView.h b/src/frontends/qt/GuiProgressView.h
index 1a722b3..f49112b 100644
--- a/src/frontends/qt/GuiProgressView.h
+++ b/src/frontends/qt/GuiProgressView.h
@@ -47,7 +47,7 @@ public:
GuiProgressView(
GuiView & parent, ///< the main window where to dock.
Qt::DockWidgetArea area = Qt::BottomDockWidgetArea, ///< Position of the dock (and also drawer)
- Qt::WindowFlags flags = 0);
+ Qt::WindowFlags flags = {});
~GuiProgressView();
/// Controller inherited method.
diff --git a/src/frontends/qt/GuiSetBorder.h b/src/frontends/qt/GuiSetBorder.h
index 5e44474..509c600 100644
--- a/src/frontends/qt/GuiSetBorder.h
+++ b/src/frontends/qt/GuiSetBorder.h
@@ -27,7 +27,7 @@ class GuiSetBorder : public QWidget
{
Q_OBJECT
public:
- GuiSetBorder(QWidget * parent = nullptr, Qt::WindowFlags fl = nullptr);
+ GuiSetBorder(QWidget * parent = nullptr, Qt::WindowFlags fl = {});
// We need tristate for multi-cell selection
enum BorderState {
diff --git a/src/frontends/qt/GuiSpellchecker.h b/src/frontends/qt/GuiSpellchecker.h
index 1297157..0ee7df1 100644
--- a/src/frontends/qt/GuiSpellchecker.h
+++ b/src/frontends/qt/GuiSpellchecker.h
@@ -63,7 +63,7 @@ public:
GuiSpellchecker(
GuiView & parent, ///< the main window where to dock.
Qt::DockWidgetArea area = Qt::RightDockWidgetArea, ///< Position of the dock (and also drawer)
- Qt::WindowFlags flags = 0);
+ Qt::WindowFlags flags = {});
~GuiSpellchecker();
private:
diff --git a/src/frontends/qt/GuiViewSource.h b/src/frontends/qt/GuiViewSource.h
index 8b2a005..f75978d 100644
--- a/src/frontends/qt/GuiViewSource.h
+++ b/src/frontends/qt/GuiViewSource.h
@@ -100,7 +100,7 @@ public:
GuiViewSource(
GuiView & parent, ///< the main window where to dock.
Qt::DockWidgetArea area = Qt::BottomDockWidgetArea, ///< Position of the dock (and also drawer)
- Qt::WindowFlags flags = 0);
+ Qt::WindowFlags flags = {});
/// Controller inherited method.
///@{
More information about the lyx-cvs
mailing list