summaryrefslogtreecommitdiffstats
path: root/svx/source/form/fmcontrollayout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/form/fmcontrollayout.cxx')
-rwxr-xr-x[-rw-r--r--]svx/source/form/fmcontrollayout.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/form/fmcontrollayout.cxx b/svx/source/form/fmcontrollayout.cxx
index 39454c27324e..5c590448b789 100644..100755
--- a/svx/source/form/fmcontrollayout.cxx
+++ b/svx/source/form/fmcontrollayout.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -143,7 +144,8 @@ namespace svxform
Reference< XPropertySetInfo > xStylePSI( xStyle->getPropertySetInfo(), UNO_SET_THROW );
// determine the script type associated with the system locale
- const LocaleDataWrapper& rSysLocaleData = SvtSysLocale().GetLocaleData();
+ const SvtSysLocale aSysLocale;
+ const LocaleDataWrapper& rSysLocaleData = aSysLocale.GetLocaleData();
const sal_Int16 eSysLocaleScriptType = MsLangId::getScriptType( MsLangId::convertLocaleToLanguage( rSysLocaleData.getLocale() ) );
// depending on this script type, use the right property from the document's style which controls the
@@ -249,9 +251,9 @@ namespace svxform
OSL_VERIFY( aVisualEffect >>= sVisualEffect );
sal_Int16 nVisualEffect = VisualEffect::NONE;
- if ( sVisualEffect.equalsAscii( "flat" ) )
+ if ( sVisualEffect.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "flat" ) ) )
nVisualEffect = VisualEffect::FLAT;
- else if ( sVisualEffect.equalsAscii( "3D" ) )
+ else if ( sVisualEffect.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "3D" ) ) )
nVisualEffect = VisualEffect::LOOK3D;
if ( xPSI->hasPropertyByName( FM_PROP_BORDER ) )
@@ -326,3 +328,4 @@ namespace svxform
} // namespace svxform
//........................................................................
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */