idl/source/prj/globals.cxx |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 978acbeb8cb203ae94040d5253031be11d17d15e
Author:     Arnaud VERSINI <arnaud.vers...@libreoffice.org>
AuthorDate: Sun Jan 2 17:10:11 2022 +0100
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Jan 2 18:24:56 2022 +0100

    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.gran...@collabora.co.uk>

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()

Reply via email to