summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-09-30 19:39:00 +0000
committerJan-Marek Glogowski <glogow@fbihome.de>2018-10-01 21:47:26 +0200
commitc6c13c83ea72141299babf840478169c72f343c1 (patch)
tree73ccfe5c5257faf0df0c817837bfcc5868496171
parentfbc6415b85a855d3658be758efe4684cfd49faa3 (diff)
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@fbihome.de>
-rw-r--r--vcl/qt5/Qt5AccessibleWidget.cxx8
1 files changed, 3 insertions, 5 deletions
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;