summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-06 21:07:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-07 08:08:44 +0200
commit07fd90cc7d85a89b9f74efba7ddc9ac457110ce3 (patch)
tree87767cc5ddfdae46541cb5008d12d24470e54a2d /unoxml
parent908b47604bff6415adda791ea6f43e43c0b1443a (diff)
rtl::Static -> function local static
Change-Id: I2071c27bdf074403ec24e67f9278ac27f9491303 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113698 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/node.cxx8
1 files changed, 2 insertions, 6 deletions
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()