From ce4193e3398e30c25ec28310a8034b4ca5513d7a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Jan 2023 12:03:59 +0200 Subject: XUnoTunnel->dynamic_cast in SvxUnoNumberingRules Change-Id: I492a951f1d686e1507232e6688c2dc75e8a41cc6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145463 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/uno/unonrule.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'editeng') diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx index 5bd84cc10b42..04403cf19a69 100644 --- a/editeng/source/uno/unonrule.cxx +++ b/editeng/source/uno/unonrule.cxx @@ -89,8 +89,6 @@ static unsigned short ConvertUnoAdjust( SvxAdjust eAdjust ) return aSvxToUnoAdjust[eAdjust]; } -UNO3_GETIMPLEMENTATION_IMPL( SvxUnoNumberingRules ); - SvxUnoNumberingRules::SvxUnoNumberingRules(SvxNumRule aRule) : maRule(std::move( aRule )) { @@ -474,7 +472,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex(const Sequence const & xRule ) { - SvxUnoNumberingRules* pRule = comphelper::getFromUnoTunnel( xRule ); + SvxUnoNumberingRules* pRule = dynamic_cast( xRule.get() ); if( pRule == nullptr ) throw IllegalArgumentException(); @@ -510,10 +508,10 @@ sal_Int16 SvxUnoNumberingRules::Compare( const Any& Any1, const Any& Any2 ) if( x1.get() == x2.get() ) return 0; - SvxUnoNumberingRules* pRule1 = comphelper::getFromUnoTunnel( x1 ); + SvxUnoNumberingRules* pRule1 = dynamic_cast( x1.get() ); if( !pRule1 ) return -1; - SvxUnoNumberingRules* pRule2 = comphelper::getFromUnoTunnel( x2 ); + SvxUnoNumberingRules* pRule2 = dynamic_cast( x2.get() ); if( !pRule2 ) return -1; -- cgit