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 --- toolkit/source/controls/unocontrolmodel.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'toolkit/source') diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx index a5f7b785f06c..f771ebf02428 100644 --- a/toolkit/source/controls/unocontrolmodel.cxx +++ b/toolkit/source/controls/unocontrolmodel.cxx @@ -422,14 +422,11 @@ css::uno::Any UnoControlModel::queryAggregation( const css::uno::Type & rType ) } // css::lang::XUnoTunnel -namespace -{ - class theUnoControlModelUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theUnoControlModelUnoTunnelId> {}; -} const css::uno::Sequence< sal_Int8 >& UnoControlModel::getUnoTunnelId() throw() { - return theUnoControlModelUnoTunnelId::get().getSeq(); + static const UnoTunnelIdInit theUnoControlModelUnoTunnelId; + return theUnoControlModelUnoTunnelId.getSeq(); } sal_Int64 UnoControlModel::getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier ) -- cgit