summaryrefslogtreecommitdiff
path: root/svl/unx/source/svdde/ddedummy.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-11-17 20:42:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-18 14:17:21 +0100
commited6651ec3b5dafed759cb602ad25e150592693a9 (patch)
tree9c4427de09a7ca8af8fe383f38f1a33df0d572f6 /svl/unx/source/svdde/ddedummy.cxx
parent3f12e3e992ae307886bc73ff37f07b270701730e (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/unx/source/svdde/ddedummy.cxx')
-rw-r--r--svl/unx/source/svdde/ddedummy.cxx10
1 files changed, 2 insertions, 8 deletions
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 <svl/svdde.hxx>
-#include <rtl/instance.hxx>
#include <tools/long.hxx>
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& )