Kaydet (Commit) fb345397 authored tarafından Eike Rathke's avatar Eike Rathke

Guard static variables, tdf#115007 tdf#117171 follow-up

Change-Id: Ib8f73ceefb8278b6233d46d86a34a3869622239f
üst 9aff7f3c
......@@ -63,6 +63,8 @@ typedef struct {
namespace i18npool {
struct theNatNumMutex : public rtl::Static<osl::Mutex, theNatNumMutex> {};
OUString getHebrewNativeNumberString(const OUString& aNumberString, bool useGeresh);
OUString getCyrillicNativeNumberString(const OUString& aNumberString);
......@@ -560,6 +562,9 @@ OUString getNumberText(const Locale& aLocale, sal_Int16 numType, const OUString&
OUString aNumberStr = sBuf.makeStringAndClear();
// Guard the static variables below.
osl::MutexGuard aGuard( theNatNumMutex::get());
static auto xNumberText
= css::linguistic2::NumberText::create(comphelper::getProcessComponentContext());
OUString aLoc = LanguageTag::convertToBcp47(aLocale);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment