diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-07 16:03:28 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-14 09:57:48 +0200 |
commit | 5c4ba7cb99a7d4e4eefaa132e64d08fdc82ba759 (patch) | |
tree | baa26d8e1dbfbe3f4f0658a17c8d42350d2aac28 /xmloff/source/core | |
parent | 0d0e8533afe565564835e6d51500e64066fd565b (diff) |
tdf#39593 use isUnoTunnelId in xmloff
Add getUnoTunnelId methods.
Change-Id: I80d3568e65ac66ee65ad589755a20270a27e62a7
Reviewed-on: https://gerrit.libreoffice.org/78744
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'xmloff/source/core')
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 6c832c7bc8d5..ba715329736a 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -449,12 +449,15 @@ namespace class theSvXMLImportUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theSvXMLImportUnoTunnelId> {}; } +const css::uno::Sequence<sal_Int8>& SvXMLImport::getUnoTunnelId() throw() +{ + return theSvXMLImportUnoTunnelId::get().getSeq(); +} + // XUnoTunnel sal_Int64 SAL_CALL SvXMLImport::getSomething( const uno::Sequence< sal_Int8 >& rId ) { - if( rId.getLength() == 16 && - 0 == memcmp( theSvXMLImportUnoTunnelId::get().getSeq().getConstArray(), - rId.getConstArray(), 16 ) ) + if( isUnoTunnelId<SvXMLImport>(rId) ) { return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_uIntPtr>(this)); } |