diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-06 21:07:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-07 08:08:44 +0200 |
commit | 07fd90cc7d85a89b9f74efba7ddc9ac457110ce3 (patch) | |
tree | 87767cc5ddfdae46541cb5008d12d24470e54a2d /sc/source/ui/unoobj/nameuno.cxx | |
parent | 908b47604bff6415adda791ea6f43e43c0b1443a (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 'sc/source/ui/unoobj/nameuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/nameuno.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx index ef322f64590d..bc15ba830316 100644 --- a/sc/source/ui/unoobj/nameuno.cxx +++ b/sc/source/ui/unoobj/nameuno.cxx @@ -433,14 +433,10 @@ sal_Int64 SAL_CALL ScNamedRangeObj::getSomething( return 0; } -namespace -{ - class theScNamedRangeObjUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theScNamedRangeObjUnoTunnelId> {}; -} - const uno::Sequence<sal_Int8>& ScNamedRangeObj::getUnoTunnelId() { - return theScNamedRangeObjUnoTunnelId::get().getSeq(); + static const UnoTunnelIdInit theScNamedRangeObjUnoTunnelId; + return theScNamedRangeObjUnoTunnelId.getSeq(); } ScNamedRangesObj::ScNamedRangesObj(ScDocShell* pDocSh) : |