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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 1 19:47:48 UTC 2018


 vcl/qt5/Qt5AccessibleWidget.cxx |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit c6c13c83ea72141299babf840478169c72f343c1
Author:     Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Sun Sep 30 19:39:00 2018 +0000
Commit:     Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Mon Oct 1 21:47:26 2018 +0200

    Qt5 pass LO clang compiler plugins
    
    loplugin:simplifydynamiccast
    
    Change-Id: I437b4a249243c6c9be6b6776295e0657474b8ab6
    Reviewed-on: https://gerrit.libreoffice.org/61171
    Tested-by: Jenkins
    Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>

diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index 3c9f465869a4..4025ed223a7f 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -562,11 +562,9 @@ QAccessibleInterface* Qt5AccessibleWidget::customFactory(const QString& classnam
     }
     if (classname == QLatin1String("Qt5XAccessible") && object)
     {
-        if (dynamic_cast<Qt5XAccessible*>(object) != nullptr)
-        {
-            Qt5XAccessible* pVclWindow = static_cast<Qt5XAccessible*>(object);
-            return new Qt5AccessibleWidget(pVclWindow->m_xAccessible);
-        }
+        Qt5XAccessible* pXAccessible = dynamic_cast<Qt5XAccessible*>(object);
+        if (pXAccessible)
+            return new Qt5AccessibleWidget(pXAccessible->m_xAccessible);
     }
 
     return nullptr;


More information about the Libreoffice-commits mailing list