diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-10 14:08:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-10 14:08:54 +0100 |
commit | f39cf7f5b2f8a6a29341b0050c392a02f83e56ce (patch) | |
tree | 65b561f35d6c007f95e5145b58601acf0f21c208 | |
parent | b62b4e65586047bd81a563adbe4c53ddfc9bf8b6 (diff) |
loplugin:implicitboolconversion, loplugin:literaltoboolconversion
Change-Id: I5cd55c9e65a4ac431642ba33da9daf0e2f6a194c
-rw-r--r-- | sc/inc/scmod.hxx | 2 | ||||
-rw-r--r-- | sc/source/filter/excel/impop.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/app/scmod2.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh3.cxx | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx index a90a0b309137..cedc0ef30f77 100644 --- a/sc/inc/scmod.hxx +++ b/sc/inc/scmod.hxx @@ -182,7 +182,7 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO void RecentFunctionsChanged(); static void GetSpellSettings( sal_uInt16& rDefLang, sal_uInt16& rCjkLang, sal_uInt16& rCtlLang, - sal_Bool& rAutoSpell ); + bool& rAutoSpell ); static void SetAutoSpellProperty( sal_Bool bSet ); static sal_Bool HasThesaurusLanguage( sal_uInt16 nLang ); diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx index c2f22d822e70..ff0e7aae0592 100644 --- a/sc/source/filter/excel/impop.cxx +++ b/sc/source/filter/excel/impop.cxx @@ -148,7 +148,7 @@ ImportExcel::ImportExcel( XclImpRootData& rImpData, SvStream& rStrm ): pD->GetFormatTable()->ChangeNullDate( 30, 12, 1899 ); ScDocOptions aDocOpt( pD->GetDocOptions() ); - aDocOpt.SetIgnoreCase( sal_True ); // always in Excel + aDocOpt.SetIgnoreCase( true ); // always in Excel aDocOpt.SetFormulaRegexEnabled( false ); // regular expressions? what's that? aDocOpt.SetLookUpColRowNames( false ); // default: no natural language refs pD->SetDocOptions( aDocOpt ); diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 13b7a6505497..41dde36b8b53 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -979,7 +979,7 @@ sal_uInt16 ScModule::GetOptDigitLanguage() void ScModule::ModifyOptions( const SfxItemSet& rOptSet ) { sal_uInt16 nOldSpellLang, nOldCjkLang, nOldCtlLang; - sal_Bool bOldAutoSpell; + bool bOldAutoSpell; GetSpellSettings( nOldSpellLang, nOldCjkLang, nOldCtlLang, bOldAutoSpell ); if (!pAppCfg) @@ -1206,7 +1206,7 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet ) if ( rOptSet.HasItem(SID_AUTOSPELL_CHECK,&pItem) ) // an Doc-Options { - sal_Bool bDoAutoSpell = ((const SfxBoolItem*)pItem)->GetValue(); + bool bDoAutoSpell = ((const SfxBoolItem*)pItem)->GetValue(); if (pDoc) { diff --git a/sc/source/ui/app/scmod2.cxx b/sc/source/ui/app/scmod2.cxx index be7eccd80b23..962cbdda63f4 100644 --- a/sc/source/ui/app/scmod2.cxx +++ b/sc/source/ui/app/scmod2.cxx @@ -36,7 +36,7 @@ using namespace com::sun::star; //------------------------------------------------------------------ void ScModule::GetSpellSettings( sal_uInt16& rDefLang, sal_uInt16& rCjkLang, sal_uInt16& rCtlLang, - sal_Bool& rAutoSpell ) + bool& rAutoSpell ) { // use SvtLinguConfig instead of service LinguProperties to avoid // loading the linguistic component diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index ccccd746e83e..0a18ba8f97bb 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -410,7 +410,7 @@ void ScDocShell::InitOptions(bool bForLoading) // called from InitNew and L // Einstellungen aus dem SpellCheckCfg kommen in Doc- und ViewOptions sal_uInt16 nDefLang, nCjkLang, nCtlLang; - sal_Bool bAutoSpell; + bool bAutoSpell; ScModule::GetSpellSettings( nDefLang, nCjkLang, nCtlLang, bAutoSpell ); ScModule* pScMod = SC_MOD(); |