From 24c17dab2f10ad1b7ba342fbd40dc65b7d8f9b24 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Wed, 12 Jun 2019 12:18:07 +0300 Subject: tdf#39593 extract UnoTunnelId comparison to template function Change-Id: Ia2b5dea273c8de7b8c54e74780193a8d4cba7b45 Reviewed-on: https://gerrit.libreoffice.org/73874 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- animations/source/animcore/animcore.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'animations') diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 9078b2fe4649..b7e28dc15c6d 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -1935,7 +1935,7 @@ void SAL_CALL AnimationNode::removeChangesListener( const Reference< XChangesLis // XUnoTunnel ::sal_Int64 SAL_CALL AnimationNode::getSomething( const Sequence< ::sal_Int8 >& rId ) { - if( rId.getLength() == 16 && memcmp( getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) == 0 ) + if( isUnoTunnelId(rId) ) { return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_IntPtr >(this)); -- cgit v1.2.3