diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:49:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-19 17:49:28 +0200 |
commit | 4180210a27240e01c9a0db0688d51b1449e4c4b8 (patch) | |
tree | 0a3b7c356d3257296702847c7a0f63d6a948b03e /cui/source/options | |
parent | 25c047fec71050bcedc6c9d355f35486f615c3c4 (diff) |
loplugin:defaultparams
Change-Id: Ia4cd4faaffaf42555b16ada5e259e85ddb496236
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/optasian.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optchart.cxx | 6 | ||||
-rw-r--r-- | cui/source/options/optgdlg.cxx | 6 | ||||
-rw-r--r-- | cui/source/options/optinet2.cxx | 36 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 6 | ||||
-rw-r--r-- | cui/source/options/optupdt.cxx | 6 | ||||
-rw-r--r-- | cui/source/options/webconninfo.cxx | 2 |
7 files changed, 32 insertions, 32 deletions
diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx index 4f21f18fe5e6..260187a15184 100644 --- a/cui/source/options/optasian.cxx +++ b/cui/source/options/optasian.cxx @@ -146,7 +146,7 @@ SvxAsianLayoutPage::SvxAsianLayoutPage( vcl::Window* pParent, const SfxItemSet& m_pStartED->SetModifyHdl(aLk); m_pEndED->SetModifyHdl(aLk); - m_pLanguageLB->SetLanguageList( SvxLanguageListFlags::FBD_CHARS, false, false ); + m_pLanguageLB->SetLanguageList( SvxLanguageListFlags::FBD_CHARS, false ); } SvxAsianLayoutPage::~SvxAsianLayoutPage() diff --git a/cui/source/options/optchart.cxx b/cui/source/options/optchart.cxx index 555915e9743d..44624ddcecb0 100644 --- a/cui/source/options/optchart.cxx +++ b/cui/source/options/optchart.cxx @@ -190,7 +190,7 @@ IMPL_LINK_NOARG_TYPED(SvxDefaultColorOptPage, ResetToDefaults, Button*, void) m_pLbChartColors->GetFocus(); m_pLbChartColors->SelectEntryPos( 0 ); - m_pPBRemove->Enable( true ); + m_pPBRemove->Enable(); } } @@ -209,7 +209,7 @@ IMPL_LINK_NOARG_TYPED(SvxDefaultColorOptPage, AddChartColor, Button*, void) m_pLbChartColors->GetFocus(); m_pLbChartColors->SelectEntryPos( pColorConfig->GetColorList().size() - 1 ); - m_pPBRemove->Enable( true ); + m_pPBRemove->Enable(); } } @@ -242,7 +242,7 @@ IMPL_LINK_TYPED( SvxDefaultColorOptPage, RemoveChartColor, Button*, pButton, voi else if (m_pLbChartColors->GetEntryCount() > 0) m_pLbChartColors->SelectEntryPos( nIndex ); else - m_pPBRemove->Enable(true); + m_pPBRemove->Enable(); } } } diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 6f14ea8c2814..0065db174704 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -1105,7 +1105,7 @@ OfaLanguagesTabPage::OfaLanguagesTabPage(vcl::Window* pParent, const SfxItemSet& m_pComplexLanguageLB->SetLanguageList( SvxLanguageListFlags::CTL | SvxLanguageListFlags::ONLY_KNOWN, true, false, true ); m_pComplexLanguageLB->InsertDefaultLanguage( css::i18n::ScriptType::COMPLEX ); - m_pLocaleSettingLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false, false); + m_pLocaleSettingLB->SetLanguageList( SvxLanguageListFlags::ALL | SvxLanguageListFlags::ONLY_KNOWN, false ); m_pLocaleSettingLB->InsertSystemLanguage( ); const NfCurrencyTable& rCurrTab = SvNumberFormatter::GetTheCurrencyTable(); @@ -1538,7 +1538,7 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet* rSet ) //overwrite them by the values provided by the DocShell if(pCurrentDocShell) { - m_pCurrentDocCB->Enable(true); + m_pCurrentDocCB->Enable(); m_pCurrentDocCB->Check(bLanguageCurrentDoc_Impl); const SfxPoolItem* pLang; if( SfxItemState::SET == rSet->GetItemState(SID_ATTR_LANGUAGE, false, &pLang)) @@ -1603,7 +1603,7 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet* rSet ) if ( SfxItemState::SET == rSet->GetItemState(SID_SET_DOCUMENT_LANGUAGE, false, &pLang ) && static_cast<const SfxBoolItem*>(pLang)->GetValue() ) { m_pWesternLanguageLB->GrabFocus(); - m_pCurrentDocCB->Enable(true); + m_pCurrentDocCB->Enable(); m_pCurrentDocCB->Check(); } } diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index 345468494451..c46e713fe1ed 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -684,11 +684,11 @@ IMPL_LINK_NOARG_TYPED(SvxSecurityTabPage, SavePasswordHdl, Button*, void) xMasterPasswd->removeMasterPassword(); if ( xMasterPasswd->changeMasterPassword( Reference< task::XInteractionHandler >() ) ) { - m_pMasterPasswordPB->Enable( true ); + m_pMasterPasswordPB->Enable(); m_pMasterPasswordCB->Check(); - m_pMasterPasswordCB->Enable( true ); - m_pMasterPasswordFT->Enable( true ); - m_pShowConnectionsPB->Enable( true ); + m_pMasterPasswordCB->Enable(); + m_pMasterPasswordFT->Enable(); + m_pShowConnectionsPB->Enable(); } else { @@ -713,8 +713,8 @@ IMPL_LINK_NOARG_TYPED(SvxSecurityTabPage, SavePasswordHdl, Button*, void) else { m_pSavePasswordsCB->Check(); - m_pMasterPasswordPB->Enable( true ); - m_pShowConnectionsPB->Enable( true ); + m_pMasterPasswordPB->Enable(); + m_pShowConnectionsPB->Enable(); } } } @@ -749,14 +749,14 @@ IMPL_LINK_NOARG_TYPED(SvxSecurityTabPage, MasterPasswordCBHdl, Button*, void) { if ( xMasterPasswd->isPersistentStoringAllowed() && xMasterPasswd->changeMasterPassword( Reference< task::XInteractionHandler >() ) ) { - m_pMasterPasswordPB->Enable( true ); - m_pMasterPasswordFT->Enable( true ); + m_pMasterPasswordPB->Enable(); + m_pMasterPasswordFT->Enable(); } else { m_pMasterPasswordCB->Check( false ); - m_pMasterPasswordPB->Enable( true ); - m_pMasterPasswordFT->Enable( true ); + m_pMasterPasswordPB->Enable(); + m_pMasterPasswordFT->Enable(); } } else @@ -769,8 +769,8 @@ IMPL_LINK_NOARG_TYPED(SvxSecurityTabPage, MasterPasswordCBHdl, Button*, void) else { m_pMasterPasswordCB->Check(); - m_pMasterPasswordPB->Enable( true ); - m_pShowConnectionsPB->Enable( true ); + m_pMasterPasswordPB->Enable(); + m_pShowConnectionsPB->Enable(); } } } @@ -872,17 +872,17 @@ void SvxSecurityTabPage::InitControls() if ( xMasterPasswd->isPersistentStoringAllowed() ) { - m_pMasterPasswordCB->Enable( true ); - m_pShowConnectionsPB->Enable( true ); + m_pMasterPasswordCB->Enable(); + m_pShowConnectionsPB->Enable(); m_pSavePasswordsCB->Check(); if ( xMasterPasswd->isDefaultMasterPasswordUsed() ) m_pMasterPasswordCB->Check( false ); else { - m_pMasterPasswordPB->Enable( true ); + m_pMasterPasswordPB->Enable(); m_pMasterPasswordCB->Check(); - m_pMasterPasswordFT->Enable( true ); + m_pMasterPasswordFT->Enable(); } } } @@ -1040,8 +1040,8 @@ bool SvxEMailTabPage::FillItemSet( SfxItemSet* ) void SvxEMailTabPage::Reset( const SfxItemSet* ) { - m_pMailerURLED->Enable(true ); - m_pMailerURLPB->Enable(true ); + m_pMailerURLED->Enable(); + m_pMailerURLPB->Enable(); if (pImpl->bROProgram) m_pMailerURLFI->Show(); diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 814d5d8f8967..af8ce6356245 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1346,7 +1346,7 @@ void SvxLinguTabPage::AddDicBoxEntry( OUString aTxt( ::GetDicInfoStr( rxDic->getName(), LanguageTag( rxDic->getLocale() ).getLanguageType(), DictionaryType_NEGATIVE == rxDic->getDictionaryType() ) ); - m_pLinguDicsCLB->InsertEntry( aTxt, TREELIST_APPEND ); // append at end + m_pLinguDicsCLB->InsertEntry( aTxt ); // append at end SvTreeListEntry* pEntry = m_pLinguDicsCLB->GetEntry( m_pLinguDicsCLB->GetEntryCount() - 1 ); DBG_ASSERT( pEntry, "failed to add entry" ); if (pEntry) @@ -1392,7 +1392,7 @@ void SvxLinguTabPage::UpdateModulesBox_Impl() for (sal_uLong i = 0; i < nDispSrvcCount; ++i) { const ServiceInfo_Impl &rInfo = rAllDispSrvcArr[i]; - m_pLinguModulesCLB->InsertEntry( rInfo.sDisplayName, TREELIST_APPEND ); + m_pLinguModulesCLB->InsertEntry( rInfo.sDisplayName ); SvTreeListEntry* pEntry = m_pLinguModulesCLB->GetEntry(i); pEntry->SetUserData( const_cast<ServiceInfo_Impl *>(&rInfo) ); m_pLinguModulesCLB->CheckEntryPos( i, rInfo.bConfigured ); @@ -1771,7 +1771,7 @@ IMPL_LINK_TYPED( SvxLinguTabPage, SelectHdl_Impl, SvTreeListBox*, pBox, void ) DicUserData aData( reinterpret_cast<sal_uLong>( pEntry->GetUserData() ) ); // always allow to edit (i.e. at least view the content of the dictionary) - m_pLinguDicsEditPB->Enable( true/*aData.IsEditable()*/ ); + m_pLinguDicsEditPB->Enable( /*aData.IsEditable()*/ ); m_pLinguDicsDelPB->Enable( aData.IsDeletable() ); } } diff --git a/cui/source/options/optupdt.cxx b/cui/source/options/optupdt.cxx index 741a2ecca292..06a9fe3b255a 100644 --- a/cui/source/options/optupdt.cxx +++ b/cui/source/options/optupdt.cxx @@ -256,9 +256,9 @@ void SvxOnlineUpdateTabPage::Reset( const SfxItemSet* ) m_xUpdateAccess->getByName( "AutoDownloadEnabled" ) >>= bValue; m_pAutoDownloadCheckBox->Check(bValue); - m_pDestPathLabel->Enable(true); - m_pDestPath->Enable(true); - m_pChangePathButton->Enable(true); + m_pDestPathLabel->Enable(); + m_pDestPath->Enable(); + m_pChangePathButton->Enable(); OUString sValue, aPath; m_xUpdateAccess->getByName( "DownloadDestination" ) >>= sValue; diff --git a/cui/source/options/webconninfo.cxx b/cui/source/options/webconninfo.cxx index d575601d3df7..c70479645811 100644 --- a/cui/source/options/webconninfo.cxx +++ b/cui/source/options/webconninfo.cxx @@ -304,7 +304,7 @@ IMPL_LINK_NOARG_TYPED(WebConnectionInfoDialog, EntrySelectedHdl, SvTreeListBox*, } else { - m_pRemoveBtn->Enable( true ); + m_pRemoveBtn->Enable(); // url container entries (-> use system credentials) have // no password |