summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-01-12 08:29:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-01-12 09:50:49 +0000
commitd66a97d5622bfc7c8d68452eb5a3c2378b0b1820 (patch)
treeb1e64b1f66280131741f12c464e14737dd2a0bdd /include
parent1f9317e341e1636c869c465e152f41f5c4037386 (diff)
loplugin:crosscast (clang-cl)
> winaccessibility/source/service/AccTopWindowListener.cxx(47,36): error: suspicious dynamic cross cast from 'css::accessibility::XAccessible *' to 'VCLXAccessibleComponent *' [loplugin:crosscast] > else if (auto pvclxcomponent = dynamic_cast<VCLXAccessibleComponent*>(pAccessible)) > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: Iee7585dd2fa0d92af3be6b89d7d08326de3d1e7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145380 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/toolkit/awt/vclxaccessiblecomponent.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/toolkit/awt/vclxaccessiblecomponent.hxx b/include/toolkit/awt/vclxaccessiblecomponent.hxx
index aaf322c6477f..24003d5500f5 100644
--- a/include/toolkit/awt/vclxaccessiblecomponent.hxx
+++ b/include/toolkit/awt/vclxaccessiblecomponent.hxx
@@ -44,7 +44,7 @@ class AccessibleRelationSetHelper;
typedef ::cppu::ImplHelper1<
css::lang::XServiceInfo > VCLXAccessibleComponent_BASE;
-class TOOLKIT_DLLPUBLIC VCLXAccessibleComponent
+class TOOLKIT_DLLPUBLIC SAL_LOPLUGIN_ANNOTATE("crosscast") VCLXAccessibleComponent
:public comphelper::OAccessibleExtendedComponentHelper
,public VCLXAccessibleComponent_BASE
{