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/transform/OOo2Oasis.cxx | |
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/transform/OOo2Oasis.cxx')
-rw-r--r-- | xmloff/source/transform/OOo2Oasis.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx index d2c2ea35f23c..e5060c3846cd 100644 --- a/xmloff/source/transform/OOo2Oasis.cxx +++ b/xmloff/source/transform/OOo2Oasis.cxx @@ -1934,19 +1934,20 @@ namespace class theOOo2OasisTransformerUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theOOo2OasisTransformerUnoTunnelId> {}; } +const css::uno::Sequence<sal_Int8>& OOo2OasisTransformer::getUnoTunnelId() throw() +{ + return theOOo2OasisTransformerUnoTunnelId::get().getSeq(); +} + // XUnoTunnel sal_Int64 SAL_CALL OOo2OasisTransformer::getSomething( const Sequence< sal_Int8 >& rId ) { - if( rId.getLength() == 16 - && 0 == memcmp( theOOo2OasisTransformerUnoTunnelId::get().getSeq().getConstArray(), - rId.getConstArray(), 16 ) ) + if( isUnoTunnelId<OOo2OasisTransformer>(rId) ) { return reinterpret_cast< sal_Int64 >( this ); } - else - { - return sal_Int64(0); - } + + return sal_Int64(0); } // XServiceInfo |