[Libreoffice-commits] core.git: vcl/qt5

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Oct 25 19:31:37 UTC 2018


 vcl/qt5/Qt5AccessibleEventListener.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 6ddda80effd0fd7edac16b050bb598721840cde4
Author:     Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Thu Oct 25 18:17:32 2018 +0000
Commit:     Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Thu Oct 25 21:31:11 2018 +0200

    Qt5 fix Windows -Werror build
    
    Change-Id: I8e58f9132c382885aa4cc85cf3e0a5277ec71623
    Reviewed-on: https://gerrit.libreoffice.org/62368
    Tested-by: Jenkins
    Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>

diff --git a/vcl/qt5/Qt5AccessibleEventListener.cxx b/vcl/qt5/Qt5AccessibleEventListener.cxx
index 4fb84d4c02d1..d0733e3d9546 100644
--- a/vcl/qt5/Qt5AccessibleEventListener.cxx
+++ b/vcl/qt5/Qt5AccessibleEventListener.cxx
@@ -63,15 +63,17 @@ void Qt5AccessibleEventListener::notifyEvent(
                 new QAccessibleEvent(pQAccessibleInterface, QAccessible::ActiveDescendantChanged));
             return;
         case AccessibleEventId::CHILD:
-            QAccessible::Event event;
+        {
+            QAccessible::Event event = QAccessible::InvalidEvent;
             if (aEvent.OldValue >>= xChild)
                 event = QAccessible::ObjectDestroyed;
             if (aEvent.NewValue >>= xChild)
                 event = QAccessible::ObjectCreated;
-            if (event)
+            if (event != QAccessible::InvalidEvent)
                 QAccessible::updateAccessibility(
                     new QAccessibleEvent(pQAccessibleInterface, event));
             return;
+        }
         case AccessibleEventId::SELECTION_CHANGED:
             QAccessible::updateAccessibility(
                 new QAccessibleEvent(pQAccessibleInterface, QAccessible::Selection));


More information about the Libreoffice-commits mailing list