From 3f65724ec5fc92d5a0078a99932358ef7091435c Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 13 Sep 2021 11:29:37 +0300 Subject: Use implementing XUnoTunnel part 4 - Change implementations of getSomething to use getSomethingImpl Or where that's impossible, use getSomething_cast to unify this and reduce number of places where we reinterpret_cast. All static methods getting tunnel ids were renamed to getUnoTunnelId, to comply with the convention used in . TODO (in separate commits): - Revise uses of getSomething to use getFromUnoTunnel Change-Id: Ifde9e214b52e5df678de71fcc32d2199c82e85cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122100 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- unoxml/source/dom/node.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'unoxml') diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx index 64545d877753..14c5dc454da1 100644 --- a/unoxml/source/dom/node.cxx +++ b/unoxml/source/dom/node.cxx @@ -978,12 +978,7 @@ namespace DOM ::sal_Int64 SAL_CALL CNode::getSomething(Sequence< ::sal_Int8 > const& rId) { - if (comphelper::isUnoTunnelId(rId)) - { - return ::sal::static_int_cast< sal_Int64 >( - reinterpret_cast< sal_IntPtr >(this) ); - } - return 0; + return comphelper::getSomethingImpl(rId, this); } } -- cgit ro/cib/libreoffice-5-3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2009-10-08 16:59:48 +0200
committerMathias Bauer <mba@openoffice.org>2009-10-08 16:59:48 +0200
commit80a5eff607808252c7fa7024793d445191d928a5 (patch)
tree19082f53c3a634c407d64001401f99479d067e2a
parentcf2b56f39d57c62b17c444025f8dfe14e6149cba (diff)
#i103496#: make svl buildable with internal inc/svl directory