[PATCH] Add override specifier

Yuriy Skalko yuriy.skalko at gmail.com
Mon Oct 5 10:26:18 UTC 2020


> This one is in too.
> 
> We are almost there :)
> 
> JMarc

Yes, I missed these. Now it should be complete. Does Clang agree with me? :)

Yuriy
-------------- next part --------------
From 8f625dd2931ad3a90187c1f70579c614003be87c Mon Sep 17 00:00:00 2001
From: Yuriy Skalko <yuriy.skalko at gmail.com>
Date: Mon, 5 Oct 2020 13:22:55 +0300
Subject: [PATCH] Amend efc0877f

Add the last `override`s.
---
 src/frontends/qt/GuiView.h       | 2 +-
 src/frontends/qt/GuiViewSource.h | 2 +-
 src/frontends/qt/LayoutBox.h     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt/GuiView.h b/src/frontends/qt/GuiView.h
index 6bf5ba3208..9c2481111c 100644
--- a/src/frontends/qt/GuiView.h
+++ b/src/frontends/qt/GuiView.h
@@ -223,7 +223,7 @@ Q_SIGNALS:
 
 public Q_SLOTS:
 	///
-	void setBusy(bool);
+	void setBusy(bool) override;
 	/// idle timeout.
 	/// clear any temporary message and replace with current status.
 	void clearMessage();
diff --git a/src/frontends/qt/GuiViewSource.h b/src/frontends/qt/GuiViewSource.h
index 47221c93f6..785c249006 100644
--- a/src/frontends/qt/GuiViewSource.h
+++ b/src/frontends/qt/GuiViewSource.h
@@ -55,7 +55,7 @@ public:
 
 protected:
 	///
-	void resizeEvent (QResizeEvent * event);
+	void resizeEvent (QResizeEvent * event) override;
 
 public Q_SLOTS:
 	///
diff --git a/src/frontends/qt/LayoutBox.h b/src/frontends/qt/LayoutBox.h
index 7b7828ab41..3980b6f0e6 100644
--- a/src/frontends/qt/LayoutBox.h
+++ b/src/frontends/qt/LayoutBox.h
@@ -46,7 +46,7 @@ public:
 		bool sorted, bool sortedByCat, bool unknown);
 
 	///
-	void showPopup();
+	void showPopup() override;
 
 	///
 	bool eventFilter(QObject * o, QEvent * e) override;
-- 
2.28.0.windows.1



More information about the lyx-devel mailing list