diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-14 16:15:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-15 09:02:33 +0200 |
commit | be88947bac607013c6b7a3c923a2eccd09e50942 (patch) | |
tree | 09cdc0803437ac8c76e12c60c6644c49cb1d5dd4 /svx/source/unodialogs | |
parent | cfddda092b0c105b5be7942a94cbbd88d55677f1 (diff) |
svx: sal_Bool->bool
Change-Id: I464eba5fd5521c31868c6fc8a2137f17428d421e
Diffstat (limited to 'svx/source/unodialogs')
4 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx index 63e11d06847f..38907746900c 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx @@ -466,7 +466,7 @@ ChineseDictionaryDialog::ChineseDictionaryDialog( Window* pParent ) m_pCT_DictionaryToTraditional = new DictionaryList(*mpToTraditionalContainer, 0); SvtLinguConfig aLngCfg; - sal_Bool bValue = sal_Bool(); + bool bValue; Any aAny( aLngCfg.GetProperty( OUString( UPN_IS_REVERSE_MAPPING ) ) ); if( aAny >>= bValue ) m_pCB_Reverse->Check( bValue ); @@ -789,7 +789,7 @@ short ChineseDictionaryDialog::Execute() //save settings to configuration SvtLinguConfig aLngCfg; Any aAny; - aAny <<= sal_Bool( !!m_pCB_Reverse->IsChecked() ); + aAny <<= m_pCB_Reverse->IsChecked(); aLngCfg.SetProperty( OUString( UPN_IS_REVERSE_MAPPING ), aAny ); m_pCT_DictionaryToSimplified->save(); diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx index a2c1a54542c4..7dbb8d3a41aa 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx @@ -206,9 +206,9 @@ uno::Any SAL_CALL ChineseTranslation_UnoDialog::getPropertyValue( const OUString { uno::Any aRet; - sal_Bool bDirectionToSimplified = sal_True; - sal_Bool bUseCharacterVariants = sal_False; - sal_Bool bTranslateCommonTerms = sal_False; + bool bDirectionToSimplified = true; + bool bUseCharacterVariants = false; + bool bTranslateCommonTerms = false; { SolarMutexGuard aSolarGuard; diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx index 5f279266d399..ae0e1b413755 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx @@ -47,7 +47,7 @@ ChineseTranslationDialog::ChineseTranslationDialog( Window* pParent ) get(m_pCB_Translate_Commonterms, "commonterms"); SvtLinguConfig aLngCfg; - sal_Bool bValue = sal_Bool(); + bool bValue; Any aAny( aLngCfg.GetProperty( OUString( UPN_IS_DIRECTION_TO_SIMPLIFIED ) ) ); aAny >>= bValue; if( bValue ) @@ -73,8 +73,8 @@ ChineseTranslationDialog::~ChineseTranslationDialog() } } -void ChineseTranslationDialog::getSettings( sal_Bool& rbDirectionToSimplified - , sal_Bool& rbTranslateCommonTerms ) const +void ChineseTranslationDialog::getSettings( bool& rbDirectionToSimplified + , bool& rbTranslateCommonTerms ) const { rbDirectionToSimplified = m_pRB_To_Simplified->IsChecked(); rbTranslateCommonTerms = m_pCB_Translate_Commonterms->IsChecked(); @@ -85,9 +85,9 @@ IMPL_LINK_NOARG(ChineseTranslationDialog, OkHdl) //save settings to configuration SvtLinguConfig aLngCfg; Any aAny; - aAny <<= sal_Bool( !!m_pRB_To_Simplified->IsChecked() ); + aAny <<= m_pRB_To_Simplified->IsChecked(); aLngCfg.SetProperty( OUString( UPN_IS_DIRECTION_TO_SIMPLIFIED ), aAny ); - aAny <<= sal_Bool( !!m_pCB_Translate_Commonterms->IsChecked() ); + aAny <<= m_pCB_Translate_Commonterms->IsChecked(); aLngCfg.SetProperty( OUString( UPN_IS_TRANSLATE_COMMON_TERMS ), aAny ); EndDialog( RET_OK ); diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx index 999e31adb92d..6f01412bcc3b 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx @@ -42,8 +42,8 @@ public: ChineseTranslationDialog( Window* pParent ); virtual ~ChineseTranslationDialog(); - void getSettings( sal_Bool& rbDirectionToSimplified - , sal_Bool& rbTranslateCommonTerms ) const; + void getSettings( bool& rbDirectionToSimplified + , bool& rbTranslateCommonTerms ) const; private: DECL_LINK( DictionaryHdl, void* ); |