summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework
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 /sd/source/ui/framework
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 'sd/source/ui/framework')
-rw-r--r--sd/source/ui/framework/factories/Pane.cxx8
-rw-r--r--sd/source/ui/framework/factories/ViewShellWrapper.cxx8
2 files changed, 4 insertions, 12 deletions
diff --git a/sd/source/ui/framework/factories/Pane.cxx b/sd/source/ui/framework/factories/Pane.cxx
index 631cc072edb3..25d1bcb40e29 100644
--- a/sd/source/ui/framework/factories/Pane.cxx
+++ b/sd/source/ui/framework/factories/Pane.cxx
@@ -138,14 +138,10 @@ sal_Bool SAL_CALL Pane::isAnchorOnly()
//----- XUnoTunnel ------------------------------------------------------------
-namespace
-{
- class thePaneUnoTunnelId : public rtl::Static< UnoTunnelIdInit, thePaneUnoTunnelId > {};
-}
-
const Sequence<sal_Int8>& Pane::getUnoTunnelId()
{
- return thePaneUnoTunnelId::get().getSeq();
+ static const UnoTunnelIdInit thePaneUnoTunnelId;
+ return thePaneUnoTunnelId.getSeq();
}
sal_Int64 SAL_CALL Pane::getSomething (const Sequence<sal_Int8>& rId)
diff --git a/sd/source/ui/framework/factories/ViewShellWrapper.cxx b/sd/source/ui/framework/factories/ViewShellWrapper.cxx
index dc801bb90bf8..4e285eeae9cb 100644
--- a/sd/source/ui/framework/factories/ViewShellWrapper.cxx
+++ b/sd/source/ui/framework/factories/ViewShellWrapper.cxx
@@ -211,14 +211,10 @@ sal_Bool SAL_CALL ViewShellWrapper::relocateToAnchor (
//----- XUnoTunnel ------------------------------------------------------------
-namespace
-{
- class theViewShellWrapperUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theViewShellWrapperUnoTunnelId> {};
-}
-
const Sequence<sal_Int8>& ViewShellWrapper::getUnoTunnelId()
{
- return theViewShellWrapperUnoTunnelId::get().getSeq();
+ static const UnoTunnelIdInit theViewShellWrapperUnoTunnelId;
+ return theViewShellWrapperUnoTunnelId.getSeq();
}
sal_Int64 SAL_CALL ViewShellWrapper::getSomething (const Sequence<sal_Int8>& rId)