[Libreoffice-commits] core.git: unoxml/source

Arkadiy Illarionov (via logerrit) logerrit at kemper.freedesktop.org
Sat Sep 7 12:54:37 UTC 2019


 unoxml/source/dom/node.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 694784687e502f2e68fde5c2e5d7fb860517cbf8
Author:     Arkadiy Illarionov <qarkai at gmail.com>
AuthorDate: Sat Sep 7 15:09:33 2019 +0300
Commit:     Arkadiy Illarionov <qarkai at gmail.com>
CommitDate: Sat Sep 7 14:54:03 2019 +0200

    tdf#39593 use isUnoTunnelId in unoxml
    
    Change-Id: I8f29df9763030ff69791bf978a359f36d553dda4
    Reviewed-on: https://gerrit.libreoffice.org/78742
    Tested-by: Jenkins
    Reviewed-by: Arkadiy Illarionov <qarkai at gmail.com>

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) );


More information about the Libreoffice-commits mailing list