summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-19 17:49:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-19 17:49:28 +0200
commit4180210a27240e01c9a0db0688d51b1449e4c4b8 (patch)
tree0a3b7c356d3257296702847c7a0f63d6a948b03e /cui/source/dialogs
parent25c047fec71050bcedc6c9d355f35486f615c3c4 (diff)
loplugin:defaultparams
Change-Id: Ia4cd4faaffaf42555b16ada5e259e85ddb496236
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r--cui/source/dialogs/SpellDialog.cxx2
-rw-r--r--cui/source/dialogs/colorpicker.cxx4
-rw-r--r--cui/source/dialogs/cuifmsearch.cxx2
-rw-r--r--cui/source/dialogs/hangulhanjadlg.cxx4
-rw-r--r--cui/source/dialogs/hlinettp.cxx2
-rw-r--r--cui/source/dialogs/hlmailtp.cxx6
-rw-r--r--cui/source/dialogs/hltpbase.cxx2
-rw-r--r--cui/source/dialogs/postdlg.cxx6
8 files changed, 13 insertions, 15 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 9134302d55c1..b327639249e3 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -424,7 +424,7 @@ void SpellDialog::SpellContinue_Impl(bool bUseSavedSentence, bool bIgnoreCurrent
sal_Int32 nIdx = 0;
do
{
- aControls[nIdx]->Enable(true);
+ aControls[nIdx]->Enable();
}
while(aControls[++nIdx]);
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index 5cb95937bbfd..420d12972f83 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1102,7 +1102,7 @@ ColorPickerDialog::ColorPickerDialog( vcl::Window* pParent, sal_Int32 nColor, sa
Image aSliderImage( maSliderImage );
mpFISliderLeft->SetImage( aSliderImage );
- mpFISliderLeft->Show(true);
+ mpFISliderLeft->Show();
BitmapEx aTmpBmp( maSliderImage.GetBitmapEx() );
aTmpBmp.Mirror( BmpMirrorFlags::Horizontal );
@@ -1128,7 +1128,7 @@ ColorPickerDialog::ColorPickerDialog( vcl::Window* pParent, sal_Int32 nColor, sa
{
mpColorPreview->SetSizePixel( mpColorPrevious->GetSizePixel() );
mpColorPrevious->SetColor( aColor );
- mpColorPrevious->Show( true );
+ mpColorPrevious->Show();
}
mdRed = ((double)aColor.GetRed()) / 255.0;
diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx
index 268dbe98b054..cbca73e7d872 100644
--- a/cui/source/dialogs/cuifmsearch.cxx
+++ b/cui/source/dialogs/cuifmsearch.cxx
@@ -603,7 +603,7 @@ void FmSearchDialog::EnableSearchUI(bool bEnable)
{ // this means we're preparing for starting a search
// In this case, EnableSearchForDependees disabled the search button
// But as we're about to use it for cancelling the search, we really need to enable it, again
- m_pbSearchAgain->Enable( true );
+ m_pbSearchAgain->Enable();
}
}
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index 1a8092bec5f5..91a97fd33262 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -851,9 +851,9 @@ namespace svx
{
// default state: try both direction
m_pHangulOnly->Check( false );
- m_pHangulOnly->Enable( true );
+ m_pHangulOnly->Enable();
m_pHanjaOnly->Check( false );
- m_pHanjaOnly->Enable( true );
+ m_pHanjaOnly->Enable();
if (!_bTryBothDirections)
{
diff --git a/cui/source/dialogs/hlinettp.cxx b/cui/source/dialogs/hlinettp.cxx
index f73027328ce3..f406ee35cf6a 100644
--- a/cui/source/dialogs/hlinettp.cxx
+++ b/cui/source/dialogs/hlinettp.cxx
@@ -66,7 +66,7 @@ SvxHyperlinkInternetTp::SvxHyperlinkInternetTp ( vcl::Window *pParent,
// set defaults
m_pRbtLinktypInternet->Check ();
- m_pBtBrowse->Enable( true );
+ m_pBtBrowse->Enable();
// set handlers
diff --git a/cui/source/dialogs/hlmailtp.cxx b/cui/source/dialogs/hlmailtp.cxx
index 567a47801ba4..d511cc5663fb 100644
--- a/cui/source/dialogs/hlmailtp.cxx
+++ b/cui/source/dialogs/hlmailtp.cxx
@@ -192,15 +192,13 @@ void SvxHyperlinkMailTp::SetInitFocus()
void SvxHyperlinkMailTp::SetScheme(const OUString& rScheme)
{
- const bool bMail = true;
-
//update target:
RemoveImproperProtocol(rScheme);
m_pCbbReceiver->SetSmartProtocol( INetProtocol::Mailto );
//show/hide special fields for MAIL:
- m_pBtAdrBook->Enable(bMail);
- m_pEdSubject->Enable(bMail);
+ m_pBtAdrBook->Enable();
+ m_pEdSubject->Enable();
}
/*************************************************************************
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index 966947a98bff..69c94924a15d 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -379,7 +379,7 @@ IMPL_LINK_NOARG_TYPED(SvxHyperlinkTabPageBase, ClickScriptHdl_Impl, Button*, voi
SFX_EVENT_MOUSEOUT_OBJECT);
if ( bIsInputEnabled )
- GetParent()->EnableInput( true );
+ GetParent()->EnableInput();
// execute dlg
DisableClose( true );
short nRet = aDlg->Execute();
diff --git a/cui/source/dialogs/postdlg.cxx b/cui/source/dialogs/postdlg.cxx
index a2ab2ec0efe2..7af081aa2d98 100644
--- a/cui/source/dialogs/postdlg.cxx
+++ b/cui/source/dialogs/postdlg.cxx
@@ -73,7 +73,7 @@ SvxPostItDialog::SvxPostItDialog(vcl::Window* pParent, const SfxItemSet& rCoreSe
nWhich = rSet.GetPool()->GetWhich( SID_ATTR_POSTIT_AUTHOR );
OUString aAuthorStr, aDateStr;
- if ( rSet.GetItemState( nWhich, true ) >= SfxItemState::DEFAULT )
+ if ( rSet.GetItemState( nWhich ) >= SfxItemState::DEFAULT )
{
bNew = false;
const SvxPostItAuthorItem& rAuthor =
@@ -85,7 +85,7 @@ SvxPostItDialog::SvxPostItDialog(vcl::Window* pParent, const SfxItemSet& rCoreSe
nWhich = rSet.GetPool()->GetWhich( SID_ATTR_POSTIT_DATE );
- if ( rSet.GetItemState( nWhich, true ) >= SfxItemState::DEFAULT )
+ if ( rSet.GetItemState( nWhich ) >= SfxItemState::DEFAULT )
{
const SvxPostItDateItem& rDate =
static_cast<const SvxPostItDateItem&>(rSet.Get( nWhich ));
@@ -100,7 +100,7 @@ SvxPostItDialog::SvxPostItDialog(vcl::Window* pParent, const SfxItemSet& rCoreSe
nWhich = rSet.GetPool()->GetWhich( SID_ATTR_POSTIT_TEXT );
OUString aTextStr;
- if ( rSet.GetItemState( nWhich, true ) >= SfxItemState::DEFAULT )
+ if ( rSet.GetItemState( nWhich ) >= SfxItemState::DEFAULT )
{
const SvxPostItTextItem& rText =
static_cast<const SvxPostItTextItem&>(rSet.Get( nWhich ));