From ed6651ec3b5dafed759cb602ad25e150592693a9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 17 Nov 2021 20:42:45 +0200 Subject: rtl::Static->thread-safe static in svl Change-Id: Idadc4dc77eb681a8b8923ffacf37ddbe1d8245e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125425 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/unx/source/svdde/ddedummy.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'svl/unx') diff --git a/svl/unx/source/svdde/ddedummy.cxx b/svl/unx/source/svdde/ddedummy.cxx index 03e423d47b3f..e174e0bc4ae1 100644 --- a/svl/unx/source/svdde/ddedummy.cxx +++ b/svl/unx/source/svdde/ddedummy.cxx @@ -18,7 +18,6 @@ */ #include -#include #include struct Conversation @@ -250,15 +249,10 @@ OUString DdeService::GetName() const return OUString(); } -namespace -{ - struct theDdeServices - : public rtl::Static< DdeServices, theDdeServices > {}; -} - DdeServices& DdeService::GetServices() { - return theDdeServices::get(); + static DdeServices SINGLETON; + return SINGLETON; } DdeItem::DdeItem( SAL_UNUSED_PARAMETER const OUString& ) -- cgit