summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
authorArnaud VERSINI <arnaud.versini@libreoffice.org>2022-01-02 17:10:11 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-01-02 18:24:56 +0100
commit978acbeb8cb203ae94040d5253031be11d17d15e (patch)
treecf2680cab873508c1488816f413acb08564cbf73 /idl/source
parent477fa6c3cb92f578032dee60482718efdb8f44f2 (diff)
idl : no need to use rtl::Static
Change-Id: I8b53ab93010f500a61aa4930817c25d09cb2552d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127869 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/prj/globals.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/idl/source/prj/globals.cxx b/idl/source/prj/globals.cxx
index 1540f53e6305..3e8160ac13ef 100644
--- a/idl/source/prj/globals.cxx
+++ b/idl/source/prj/globals.cxx
@@ -23,15 +23,10 @@
#include <globals.hxx>
#include <database.hxx>
-namespace {
-
-struct TheIdlDll: public rtl::Static<IdlDll, TheIdlDll> {};
-
-}
-
IdlDll & GetIdlApp()
{
- return TheIdlDll::get();
+ static IdlDll aIdlDll;
+ return aIdlDll;
}
IdlDll::IdlDll()