summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-09-07 15:09:33 +0300
committerArkadiy Illarionov <qarkai@gmail.com>2019-09-07 14:54:03 +0200
commit694784687e502f2e68fde5c2e5d7fb860517cbf8 (patch)
treef79fef35035042fb576668ceebefe01ae7366262
parent483ba975b40d99c931c22a63fc85e190922406a7 (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>
-rw-r--r--unoxml/source/dom/node.cxx4
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) );