From 07fd90cc7d85a89b9f74efba7ddc9ac457110ce3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Apr 2021 21:07:01 +0200 Subject: rtl::Static -> function local static Change-Id: I2071c27bdf074403ec24e67f9278ac27f9491303 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113698 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unoxml/source/dom/node.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'unoxml/source/dom') diff --git a/unoxml/source/dom/node.cxx b/unoxml/source/dom/node.cxx index 8abe73e707b3..ce6b9e7beb54 100644 --- a/unoxml/source/dom/node.cxx +++ b/unoxml/source/dom/node.cxx @@ -48,11 +48,6 @@ using namespace css::xml::dom; using namespace css::xml::dom::events; using namespace css::xml::sax; -namespace -{ - class theCNodeUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theCNodeUnoTunnelId > {}; -} - namespace DOM { void pushContext(Context& io_rContext) @@ -169,7 +164,8 @@ namespace DOM const css::uno::Sequence< sal_Int8 > & CNode::getUnoTunnelId() throw() { - return theCNodeUnoTunnelId::get().getSeq(); + static const UnoTunnelIdInit theCNodeUnoTunnelId; + return theCNodeUnoTunnelId.getSeq(); } CDocument & CNode::GetOwnerDocument() -- cgit