diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-07 15:09:33 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-09-07 14:54:03 +0200 |
commit | 694784687e502f2e68fde5c2e5d7fb860517cbf8 (patch) | |
tree | f79fef35035042fb576668ceebefe01ae7366262 /unoxml | |
parent | 483ba975b40d99c931c22a63fc85e190922406a7 (diff) |
tdf#39593 use isUnoTunnelId in unoxml
Change-Id: I8f29df9763030ff69791bf978a359f36d553dda4
Reviewed-on: https://gerrit.libreoffice.org/78742
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/node.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx index 7171e6c2f791..cdeab8e2d419 100644 --- a/unoxml/source/dom/node.cxx +++ b/unoxml/source/dom/node.cxx @@ -993,9 +993,7 @@ namespace DOM ::sal_Int64 SAL_CALL CNode::getSomething(Sequence< ::sal_Int8 > const& rId) { - if ((rId.getLength() == 16) && - (0 == memcmp(getUnoTunnelId().getConstArray(), - rId.getConstArray(), 16))) + if (isUnoTunnelId<CNode>(rId)) { return ::sal::static_int_cast< sal_Int64 >( reinterpret_cast< sal_IntPtr >(this) ); |