diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-18 20:54:55 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-09-18 21:53:27 +0200 |
commit | b883e3d58db404a92bee044091b6cfd3892311c2 (patch) | |
tree | 1596be5acb0eee528ed01aabc43e7c97ee8311c0 /sd/source/ui/unoidl | |
parent | 33d922ea07b6b20276471b19fd9c148ed90d7442 (diff) |
tdf#39593 use isUnoTunnelId in sd
Rename SdrModel::getUnoTunnelImplementationId()
Change-Id: I364a05efe8ddc04b2b2ca393416c9b974ded43df
Reviewed-on: https://gerrit.libreoffice.org/79108
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 878db5a6175f..cf31dfa902e7 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -343,11 +343,8 @@ sal_Int64 SAL_CALL SdXImpressDocument::getSomething( const css::uno::Sequence< s if( isUnoTunnelId<SdXImpressDocument>(rIdentifier) ) return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(this)); - if( (rIdentifier.getLength() == 16) && - (0 == memcmp( SdrModel::getUnoTunnelImplementationId().getConstArray(), rIdentifier.getConstArray(), 16 ))) - { + if( isUnoTunnelId<SdrModel>(rIdentifier) ) return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_IntPtr>(mpDoc)); - } return SfxBaseModel::getSomething( rIdentifier ); } |