summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-27 15:26:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-27 15:30:53 +0200
commit4815d3da5647b274894bbf4edafcadab179ce8f0 (patch)
treea61ea578ce7527a6d83d6294510b12cb4ddea530 /cui
parent0e4d62adee96ac89822b1808b80af77c8264d052 (diff)
More loplugin:simplifybool
Change-Id: If2eef4011382f48b31d8d6289e4bf725a8cb60ae
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/selector.cxx4
-rw-r--r--cui/source/dialogs/SpellDialog.cxx2
-rw-r--r--cui/source/tabpages/tpbitmap.cxx2
-rw-r--r--cui/source/tabpages/tpcolor.cxx2
-rw-r--r--cui/source/tabpages/tpgradnt.cxx2
-rw-r--r--cui/source/tabpages/tphatch.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx
index 5a5723d81c19..ee962883068e 100644
--- a/cui/source/customize/selector.cxx
+++ b/cui/source/customize/selector.cxx
@@ -959,7 +959,7 @@ IMPL_LINK( SvxScriptSelectorDialog, ClickHdl, Button *, pButton )
{
// 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
- if ( m_bShowSlots == false )
+ if ( !m_bShowSlots )
{
EndDialog( RET_CANCEL );
}
@@ -974,7 +974,7 @@ IMPL_LINK( SvxScriptSelectorDialog, ClickHdl, Button *, pButton )
// If we are displaying Slot API commands then this the dialog is being
// run from Tools/Configure and we should not close it
- if ( m_bShowSlots == false )
+ if ( !m_bShowSlots )
{
EndDialog( RET_OK );
}
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 1aa1613b286f..c9462aaa3e8a 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -382,7 +382,7 @@ void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrent
//MarkNextError is not initially called if the UndoEdit mode is active
bool bNextSentence = false;
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();
if( pSpellErrorDescription )
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx
index fdca9bcd10f6..371262628040 100644
--- a/cui/source/tabpages/tpbitmap.cxx
+++ b/cui/source/tabpages/tpbitmap.cxx
@@ -230,7 +230,7 @@ int SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet)
bool SvxBitmapTabPage::FillItemSet( SfxItemSet* _rOutAttrs )
{
- if( nDlgType == 0 && *pbAreaTP == false ) // area dialog
+ if( nDlgType == 0 && !*pbAreaTP ) // area dialog
{
if(PT_BITMAP == *pPageType)
{
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index 571861856343..42baaadb31de 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -559,7 +559,7 @@ long SvxColorTabPage::CheckChanges_Impl()
bool SvxColorTabPage::FillItemSet( SfxItemSet* rSet )
{
if( ( nDlgType != 0 ) ||
- ( *pPageType == PT_COLOR && *pbAreaTP == false ) )
+ ( *pPageType == PT_COLOR && !*pbAreaTP ) )
{
OUString aString;
Color aColor;
diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx
index 9c554b7f1e1c..a4b866ee1d91 100644
--- a/cui/source/tabpages/tpgradnt.cxx
+++ b/cui/source/tabpages/tpgradnt.cxx
@@ -309,7 +309,7 @@ long SvxGradientTabPage::CheckChanges_Impl()
bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet )
{
- if( nDlgType == 0 && *pPageType == PT_GRADIENT && *pbAreaTP == false )
+ if( nDlgType == 0 && *pPageType == PT_GRADIENT && !*pbAreaTP )
{
// CheckChanges(); <-- duplicate inquiry ?
diff --git a/cui/source/tabpages/tphatch.cxx b/cui/source/tabpages/tphatch.cxx
index c3afeafafd6e..7a7557bbab07 100644
--- a/cui/source/tabpages/tphatch.cxx
+++ b/cui/source/tabpages/tphatch.cxx
@@ -281,7 +281,7 @@ long SvxHatchTabPage::CheckChanges_Impl()
bool SvxHatchTabPage::FillItemSet( SfxItemSet* rSet )
{
- if( nDlgType == 0 && *pbAreaTP == false ) // area dialog
+ if( nDlgType == 0 && !*pbAreaTP ) // area dialog
{
if( *pPageType == PT_HATCH )
{