summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-10 16:33:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-10 16:34:14 +0100
commitcf6516632379688fa2b4c66f5e1644355fb424fe (patch)
treea28a2882acabc445121ff3baeda76b2f3e8bf031 /vcl
parent07d01742c69f1c0335bc7e1b57abd8341ce255e7 (diff)
WaE: unsafe mix of bool and sal_Bool
Change-Id: Ie2fcc1a5404c62dc15b98f99f89631795df91b01
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/settings.hxx2
-rw-r--r--vcl/source/app/settings.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/vcl/settings.hxx b/vcl/inc/vcl/settings.hxx
index f69f91f0955a..a3399e14925d 100644
--- a/vcl/inc/vcl/settings.hxx
+++ b/vcl/inc/vcl/settings.hxx
@@ -1046,7 +1046,7 @@ public:
LanguageType GetLanguage() const;
void SetUILanguage( LanguageType eLang );
LanguageType GetUILanguage() const;
- sal_Bool GetLayoutRTL() const; // returns sal_True if UI language requires right-to-left UI
+ bool GetLayoutRTL() const; // returns true if UI language requires right-to-left UI
const LocaleDataWrapper& GetLocaleDataWrapper() const;
const LocaleDataWrapper& GetUILocaleDataWrapper() const;
const vcl::I18nHelper& GetLocaleI18nHelper() const;
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index cd2c7e65d798..35ed7a818a1b 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -1490,7 +1490,7 @@ void AllSettings::SetUILanguage( LanguageType )
// -----------------------------------------------------------------------
-sal_Bool AllSettings::GetLayoutRTL() const
+bool AllSettings::GetLayoutRTL() const
{
static const char* pEnv = getenv("SAL_RTL_ENABLED" );
static int nUIMirroring = -1; // -1: undef, 0: auto, 1: on 2: off
@@ -1499,7 +1499,7 @@ sal_Bool AllSettings::GetLayoutRTL() const
if( pEnv )
return true;
- sal_Bool bRTL = sal_False;
+ bool bRTL = false;
if( nUIMirroring == -1 )
{