summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2012-03-19 14:34:35 +0100
committerJan Holesovsky <kendy@suse.cz>2012-03-19 14:34:35 +0100
commit43061897a69fbfc765170e87588f843fbd540e52 (patch)
tree15adc5f369d314c67674d34d1a6845d68ed8f867 /desktop
parent9019ccb42398b714666f045693e503780d9746ab (diff)
Workaround a strange wine / mingw crash.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/langselect.cxx6
-rw-r--r--desktop/source/app/langselect.hxx1
2 files changed, 2 insertions, 5 deletions
diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx
index 7dbc4f2e35c1..387dca0398a5 100644
--- a/desktop/source/app/langselect.cxx
+++ b/desktop/source/app/langselect.cxx
@@ -72,8 +72,6 @@ sal_Bool LanguageSelection::bFoundLanguage = sal_False;
OUString LanguageSelection::aFoundLanguage;
LanguageSelection::LanguageSelectionStatus LanguageSelection::m_eStatus = LS_STATUS_OK;
-const OUString LanguageSelection::usFallbackLanguage(RTL_CONSTASCII_USTRINGPARAM("en-US"));
-
static sal_Bool existsURL( OUString const& sURL )
{
using namespace osl;
@@ -335,11 +333,11 @@ OUString LanguageSelection::getLanguageString()
}
}
// fallback 1: en-US
- OUString usFB = usFallbackLanguage;
+ OUString usFB(RTL_CONSTASCII_USTRINGPARAM("en-US"));
if (isInstalledLanguage(usFB))
{
bFoundLanguage = sal_True;
- aFoundLanguage = usFallbackLanguage;
+ aFoundLanguage = OUString(RTL_CONSTASCII_USTRINGPARAM("en-US"));
return aFoundLanguage;
}
diff --git a/desktop/source/app/langselect.hxx b/desktop/source/app/langselect.hxx
index 2fd8074307a9..93b6bc4b2162 100644
--- a/desktop/source/app/langselect.hxx
+++ b/desktop/source/app/langselect.hxx
@@ -54,7 +54,6 @@ public:
static LanguageSelectionStatus getStatus();
private:
- static const rtl::OUString usFallbackLanguage;
static rtl::OUString aFoundLanguage;
static sal_Bool bFoundLanguage;
static LanguageSelectionStatus m_eStatus;