mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix -Winconsistent-missing-override
Fix the following warning:
src/frontends/qt/GuiDocument.h:377:7: error: 'eventFilter' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
bool eventFilter(QObject * sender, QEvent * event);
^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:139:18: note: overridden virtual function is here
virtual bool eventFilter(QObject *watched, QEvent *event);
^
Amends 62413580de
.
This commit is contained in:
parent
62413580de
commit
2ccaefa8a1
@ -374,7 +374,7 @@ Q_SIGNALS:
|
||||
void changed();
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject * sender, QEvent * event);
|
||||
bool eventFilter(QObject * sender, QEvent * event) override;
|
||||
|
||||
private:
|
||||
void closeEvent(QCloseEvent *) override;
|
||||
|
Loading…
Reference in New Issue
Block a user