diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:51:46 +0200 |
commit | 3b7609446ba50b6181843ce05f48c100087f3006 (patch) | |
tree | 8d75eb6130056197ff31391a2891d4919ca0fcef /sw/source/ui/misc | |
parent | a003d8c59d0324ab3f44ec608f473e654ce48902 (diff) |
loplugin:defaultparams
Change-Id: Ib5b0e87064b6dcff03f6b77287a80ee2a03b8799
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r-- | sw/source/ui/misc/glosbib.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/misc/insfnote.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/misc/num.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/misc/outline.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/misc/pggrid.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/misc/srtdlg.cxx | 2 |
7 files changed, 12 insertions, 13 deletions
diff --git a/sw/source/ui/misc/glosbib.cxx b/sw/source/ui/misc/glosbib.cxx index 24cbf3ce654e..59d9bf13e465 100644 --- a/sw/source/ui/misc/glosbib.cxx +++ b/sw/source/ui/misc/glosbib.cxx @@ -91,7 +91,7 @@ SwGlossaryGroupDlg::SwGlossaryGroupDlg(vcl::Window * pParent, m_pPathLB->SetEntryData(i, reinterpret_cast<void*>(nCaseReadonly)); } m_pPathLB->SelectEntryPos(0); - m_pPathLB->Enable(true); + m_pPathLB->Enable(); const size_t nCount = pHdl->GetGroupCnt(); for( size_t i = 0; i < nCount; ++i) diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index 3ab52b95f415..6f94e2c7c6a0 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -446,8 +446,7 @@ IMPL_LINK_TYPED( SwGlossaryDlg, MenuHdl, Menu *, pMn, bool ) if (sItemIdent == "replace") { pGlossaryHdl->NewGlossary(m_pNameED->GetText(), - m_pShortNameEdit->GetText(), - false); + m_pShortNameEdit->GetText()); } else if (sItemIdent == "replacetext") { diff --git a/sw/source/ui/misc/insfnote.cxx b/sw/source/ui/misc/insfnote.cxx index f4b424fae7c3..8f0f7247e7e0 100644 --- a/sw/source/ui/misc/insfnote.cxx +++ b/sw/source/ui/misc/insfnote.cxx @@ -96,7 +96,7 @@ IMPL_LINK_NOARG_TYPED(SwInsFootNoteDlg, NumberEditHdl, Edit&, void) IMPL_LINK_NOARG_TYPED(SwInsFootNoteDlg, NumberAutoBtnHdl, Button*, void) { - m_pOkBtn->Enable( true ); + m_pOkBtn->Enable(); } IMPL_LINK_NOARG_TYPED(SwInsFootNoteDlg, NumberExtCharHdl, Button*, void) diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx index 569b42efa367..6b15cf6a57a5 100644 --- a/sw/source/ui/misc/num.cxx +++ b/sw/source/ui/misc/num.cxx @@ -344,8 +344,8 @@ void SwNumPositionTabPage::InitControls() if ( aNumFormatArr[nLvl]->GetLabelFollowedBy() == SvxNumberFormat::LISTTAB ) { - m_pListtabFT->Enable( true ); - m_pListtabMF->Enable( true ); + m_pListtabFT->Enable(); + m_pListtabMF->Enable(); if ( bSameListtab ) { m_pListtabMF->SetValue(m_pListtabMF->Normalize(aNumFormatArr[nLvl]->GetListtabPos()),FUNIT_TWIP); diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index f88b043c5ab9..5c235f9fea9b 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx @@ -512,8 +512,8 @@ void SwOutlineSettingsTabPage::Update() else m_pCharFormatLB->SetNoSelection(); - m_pAllLevelFT->Enable(true); - m_pAllLevelNF->Enable(true); + m_pAllLevelFT->Enable(); + m_pAllLevelNF->Enable(); m_pAllLevelNF->SetMax(MAXLEVEL); if(bSameComplete) { @@ -545,8 +545,8 @@ void SwOutlineSettingsTabPage::Update() if(nTmpLevel) { - m_pAllLevelFT->Enable(true); - m_pAllLevelNF->Enable(true); + m_pAllLevelFT->Enable(); + m_pAllLevelNF->Enable(); m_pAllLevelNF->SetMax(nTmpLevel + 1); m_pAllLevelNF->SetValue(rFormat.GetIncludeUpperLevels()); } diff --git a/sw/source/ui/misc/pggrid.cxx b/sw/source/ui/misc/pggrid.cxx index 6c3e70d16617..d4410caf9953 100644 --- a/sw/source/ui/misc/pggrid.cxx +++ b/sw/source/ui/misc/pggrid.cxx @@ -217,7 +217,7 @@ bool SwTextGridPage::FillItemSet(SfxItemSet *rSet) void SwTextGridPage::Reset(const SfxItemSet *rSet) { - if(SfxItemState::DEFAULT <= rSet->GetItemState(RES_TEXTGRID, true)) + if(SfxItemState::DEFAULT <= rSet->GetItemState(RES_TEXTGRID)) { const SwTextGridItem& rGridItem = static_cast<const SwTextGridItem&>(rSet->Get(RES_TEXTGRID)); RadioButton* pButton = 0; @@ -306,7 +306,7 @@ void SwTextGridPage::PutGridItem(SfxItemSet& rSet) void SwTextGridPage::UpdatePageSize(const SfxItemSet& rSet) { - if( SfxItemState::UNKNOWN != rSet.GetItemState( RES_FRAMEDIR, true )) + if( SfxItemState::UNKNOWN != rSet.GetItemState( RES_FRAMEDIR )) { const SvxFrameDirectionItem& rDirItem = static_cast<const SvxFrameDirectionItem&>(rSet.Get(RES_FRAMEDIR)); diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx index f6cdfa9d71e9..a75f46504e51 100644 --- a/sw/source/ui/misc/srtdlg.cxx +++ b/sw/source/ui/misc/srtdlg.cxx @@ -205,7 +205,7 @@ SwSortDlg::SwSortDlg(vcl::Window* pParent, SwWrtShell &rShell) if( LANGUAGE_NONE == nLang || LANGUAGE_DONTKNOW == nLang ) nLang = (sal_uInt16)GetAppLanguage(); - m_pLangLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, true, false); + m_pLangLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, true ); m_pLangLB->SelectLanguage( nLang ); LanguageHdl( 0 ); |