summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/misc/dp_misc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-11-08 21:24:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-12 10:16:14 +0100
commit2811d0a20e038f6fd573f31eff8d485bd16c81ce (patch)
tree253e23996690c4f14e8715a6ecaf210fc9a5a3a7 /desktop/source/deployment/misc/dp_misc.cxx
parent00d74a5e0291a40e532b2a0f51fdd5a3e1f487ed (diff)
rtl::Static to thread-safe static
Change-Id: I6390d1811bad59c09a074039c635710d25a660d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124886 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/source/deployment/misc/dp_misc.cxx')
-rw-r--r--desktop/source/deployment/misc/dp_misc.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx
index 63f684666857..f4437711dab5 100644
--- a/desktop/source/deployment/misc/dp_misc.cxx
+++ b/desktop/source/deployment/misc/dp_misc.cxx
@@ -23,6 +23,7 @@
#include <dp_misc.h>
#include <dp_interact.h>
+#include <dp_shared.hxx>
#include <rtl/uri.hxx>
#include <rtl/digest.h>
#include <rtl/random.h>
@@ -550,4 +551,11 @@ void disposeBridges(Reference<css::uno::XComponentContext> const & ctx)
}
+OUString DpResId(TranslateId aId)
+{
+ static std::locale SINGLETON = Translate::Create("dkt");
+ return Translate::get(aId, SINGLETON);
+}
+
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */