diff options
Diffstat (limited to 'lingucomponent/source/numbertext/numbertext.cxx')
-rw-r--r-- | lingucomponent/source/numbertext/numbertext.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx index 44149fa39d68..006e99d30aed 100644 --- a/lingucomponent/source/numbertext/numbertext.cxx +++ b/lingucomponent/source/numbertext/numbertext.cxx @@ -102,26 +102,26 @@ NumberText_Impl::NumberText_Impl() void NumberText_Impl::EnsureInitialized() { - if (!m_bInitialized) - { - // set this to true at the very start to prevent loops because of - // implicitly called functions below - m_bInitialized = true; - - // set default numbertext path to where those get installed - OUString aPhysPath; - OUString aURL(SvtPathOptions().GetNumbertextPath()); - osl::FileBase::getSystemPathFromFileURL(aURL, aPhysPath); + if (m_bInitialized) + return; + + // set this to true at the very start to prevent loops because of + // implicitly called functions below + m_bInitialized = true; + + // set default numbertext path to where those get installed + OUString aPhysPath; + OUString aURL(SvtPathOptions().GetNumbertextPath()); + osl::FileBase::getSystemPathFromFileURL(aURL, aPhysPath); #ifdef _WIN32 - aPhysPath += "\\"; + aPhysPath += "\\"; #else - aPhysPath += "/"; + aPhysPath += "/"; #endif #if ENABLE_LIBNUMBERTEXT - OString path = OUStringToOString(aPhysPath, osl_getThreadTextEncoding()); - m_aNumberText.set_prefix(path.getStr()); + OString path = OUStringToOString(aPhysPath, osl_getThreadTextEncoding()); + m_aNumberText.set_prefix(path.getStr()); #endif - } } OUString SAL_CALL NumberText_Impl::getNumberText(const OUString& rText, const Locale& |