Kaydet (Commit) 4815d3da authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:simplifybool

Change-Id: If2eef4011382f48b31d8d6289e4bf725a8cb60ae
üst 0e4d62ad
...@@ -959,7 +959,7 @@ IMPL_LINK( SvxScriptSelectorDialog, ClickHdl, Button *, pButton ) ...@@ -959,7 +959,7 @@ IMPL_LINK( SvxScriptSelectorDialog, ClickHdl, Button *, pButton )
{ {
// If we are displaying Slot API commands then the dialog is being // If we are displaying Slot API commands then the dialog is being
// run from Tools/Configure and we should not close it, just hide it // run from Tools/Configure and we should not close it, just hide it
if ( m_bShowSlots == false ) if ( !m_bShowSlots )
{ {
EndDialog( RET_CANCEL ); EndDialog( RET_CANCEL );
} }
...@@ -974,7 +974,7 @@ IMPL_LINK( SvxScriptSelectorDialog, ClickHdl, Button *, pButton ) ...@@ -974,7 +974,7 @@ IMPL_LINK( SvxScriptSelectorDialog, ClickHdl, Button *, pButton )
// If we are displaying Slot API commands then this the dialog is being // If we are displaying Slot API commands then this the dialog is being
// run from Tools/Configure and we should not close it // run from Tools/Configure and we should not close it
if ( m_bShowSlots == false ) if ( !m_bShowSlots )
{ {
EndDialog( RET_OK ); EndDialog( RET_OK );
} }
......
...@@ -382,7 +382,7 @@ void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrent ...@@ -382,7 +382,7 @@ void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrent
//MarkNextError is not initially called if the UndoEdit mode is active //MarkNextError is not initially called if the UndoEdit mode is active
bool bNextSentence = false; bool bNextSentence = false;
if((!m_pSentenceED->IsUndoEditMode() && m_pSentenceED->MarkNextError( bIgnoreCurrentError, xSpell )) || if((!m_pSentenceED->IsUndoEditMode() && m_pSentenceED->MarkNextError( bIgnoreCurrentError, xSpell )) ||
true == ( bNextSentence = GetNextSentence_Impl(bUseSavedSentence, m_pSentenceED->IsUndoEditMode()) && m_pSentenceED->MarkNextError( false, xSpell ))) ( bNextSentence = GetNextSentence_Impl(bUseSavedSentence, m_pSentenceED->IsUndoEditMode()) && m_pSentenceED->MarkNextError( false, xSpell )))
{ {
const SpellErrorDescription* pSpellErrorDescription = m_pSentenceED->GetAlternatives(); const SpellErrorDescription* pSpellErrorDescription = m_pSentenceED->GetAlternatives();
if( pSpellErrorDescription ) if( pSpellErrorDescription )
......
...@@ -230,7 +230,7 @@ int SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet) ...@@ -230,7 +230,7 @@ int SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet)
bool SvxBitmapTabPage::FillItemSet( SfxItemSet* _rOutAttrs ) bool SvxBitmapTabPage::FillItemSet( SfxItemSet* _rOutAttrs )
{ {
if( nDlgType == 0 && *pbAreaTP == false ) // area dialog if( nDlgType == 0 && !*pbAreaTP ) // area dialog
{ {
if(PT_BITMAP == *pPageType) if(PT_BITMAP == *pPageType)
{ {
......
...@@ -559,7 +559,7 @@ long SvxColorTabPage::CheckChanges_Impl() ...@@ -559,7 +559,7 @@ long SvxColorTabPage::CheckChanges_Impl()
bool SvxColorTabPage::FillItemSet( SfxItemSet* rSet ) bool SvxColorTabPage::FillItemSet( SfxItemSet* rSet )
{ {
if( ( nDlgType != 0 ) || if( ( nDlgType != 0 ) ||
( *pPageType == PT_COLOR && *pbAreaTP == false ) ) ( *pPageType == PT_COLOR && !*pbAreaTP ) )
{ {
OUString aString; OUString aString;
Color aColor; Color aColor;
......
...@@ -309,7 +309,7 @@ long SvxGradientTabPage::CheckChanges_Impl() ...@@ -309,7 +309,7 @@ long SvxGradientTabPage::CheckChanges_Impl()
bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet ) bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet )
{ {
if( nDlgType == 0 && *pPageType == PT_GRADIENT && *pbAreaTP == false ) if( nDlgType == 0 && *pPageType == PT_GRADIENT && !*pbAreaTP )
{ {
// CheckChanges(); <-- duplicate inquiry ? // CheckChanges(); <-- duplicate inquiry ?
......
...@@ -281,7 +281,7 @@ long SvxHatchTabPage::CheckChanges_Impl() ...@@ -281,7 +281,7 @@ long SvxHatchTabPage::CheckChanges_Impl()
bool SvxHatchTabPage::FillItemSet( SfxItemSet* rSet ) bool SvxHatchTabPage::FillItemSet( SfxItemSet* rSet )
{ {
if( nDlgType == 0 && *pbAreaTP == false ) // area dialog if( nDlgType == 0 && !*pbAreaTP ) // area dialog
{ {
if( *pPageType == PT_HATCH ) if( *pPageType == PT_HATCH )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment