summaryrefslogtreecommitdiff
path: root/sd/source/ui/table
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-25 16:34:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-28 21:14:02 +0100
commit589e03fb4c3b05bf3742c0cb8b366322ffdf1fa9 (patch)
treefdb74a127d5588bc19c71528b7a8a56fbcdcc308 /sd/source/ui/table
parent0e4ff2261f3c2c9dada5816f11095652e028c3dd (diff)
[PATCH] Replace some dynamic_cast with UNO_QUERY
Change-Id: I59ad7246cee84bd63784477e1fefda708ac35dd9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143413 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd/source/ui/table')
-rw-r--r--sd/source/ui/table/tablefunction.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx
index 21b9df9ad4aa..352ffb37abfe 100644
--- a/sd/source/ui/table/tablefunction.cxx
+++ b/sd/source/ui/table/tablefunction.cxx
@@ -66,7 +66,8 @@ static void apply_table_style( SdrTableObj* pObj, SdrModel const * pModel, const
if( !(pModel && pObj) )
return;
- Reference< XNameAccess > xPool( dynamic_cast< XNameAccess* >( pModel->GetStyleSheetPool() ) );
+ Reference< XNameAccess > xPool(
+ static_cast< cppu::OWeakObject* >( pModel->GetStyleSheetPool() ), css::uno::UNO_QUERY );
if( !xPool.is() )
return;