]> git.lyx.org Git - features.git/commitdiff
Fix compilation with qt5 and c++11 combined.
authorGuillaume Munch <gadmm@free.fr>
Mon, 24 Aug 2015 19:05:48 +0000 (21:05 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 24 Aug 2015 19:05:48 +0000 (21:05 +0200)
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiApplication.h

index fe3450912e5167b3c149b53c40b9e50a3004950f..7671d59650a91ba051eab38c74d0c263d69525d6 100644 (file)
@@ -3085,7 +3085,7 @@ bool GuiApplication::x11EventFilter(XEvent * xev)
 }
 #elif defined(QPA_XCB)
 bool GuiApplication::nativeEventFilter(const QByteArray & eventType,
-                                      void * message, long *) Q_DECL_OVERRIDE
+                                      void * message, long *)
 {
        if (!current_view_ || eventType != "xcb_generic_event_t")
                return false;
index 344a8620dab421e8435cf03c65b768dd777af6ce..350adc871893f885bff413caa9bd651ccaf9fd73 100644 (file)
@@ -108,7 +108,8 @@ public:
 #ifdef Q_WS_X11
        bool x11EventFilter(XEvent * ev);
 #elif defined(QPA_XCB)
-       virtual bool nativeEventFilter(const QByteArray & eventType, void * message, long * result);
+       virtual bool nativeEventFilter(const QByteArray & eventType, void * message,
+                                      long * result) Q_DECL_OVERRIDE;
 #endif
        //@}