diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 08:39:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 10:49:24 +0200 |
commit | 889fc93087ae1b57348803014c0a6090fd48c06f (patch) | |
tree | 9773c8cb5a9589d52fc0af5a2c56680c30aa3a5b /cui/source/customize | |
parent | db48f40e0777e566627852aeca92588869498adb (diff) |
loplugin:unusedmethods unused return value in cui
Change-Id: Ib65ceeeb5e1be0de5e3808e652e910fff3820bf8
Diffstat (limited to 'cui/source/customize')
-rw-r--r-- | cui/source/customize/cfg.cxx | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 89cc606ec466..cd941bebdcb4 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -2580,7 +2580,7 @@ void SvxMenuConfigPage::DeleteSelectedTopLevel() GetSaveInData()->SetModified( ); } -bool SvxMenuConfigPage::DeleteSelectedContent() +void SvxMenuConfigPage::DeleteSelectedContent() { SvTreeListEntry *pActEntry = m_pContentsListBox->FirstSelected(); @@ -2610,10 +2610,7 @@ bool SvxMenuConfigPage::DeleteSelectedContent() GetSaveInData()->SetModified(); pMenu->SetModified(); - - return true; } - return false; } short SvxMenuConfigPage::QueryReset() @@ -3220,7 +3217,7 @@ void SvxToolbarConfigPage::DeleteSelectedTopLevel() } } -bool SvxToolbarConfigPage::DeleteSelectedContent() +void SvxToolbarConfigPage::DeleteSelectedContent() { SvTreeListEntry *pActEntry = m_pContentsListBox->FirstSelected(); @@ -3258,11 +3255,7 @@ bool SvxToolbarConfigPage::DeleteSelectedContent() DeleteSelectedTopLevel(); } } - - return true; } - - return false; } IMPL_LINK_TYPED( SvxToolbarConfigPage, MoveHdl, Button *, pButton, void ) @@ -4403,7 +4396,7 @@ void ToolbarSaveInData::RestoreToolbar( SvxConfigEntry* pToolbar ) } } -bool ToolbarSaveInData::LoadToolbar( +void ToolbarSaveInData::LoadToolbar( const uno::Reference< container::XIndexAccess >& xToolbarSettings, SvxConfigEntry* pParentData ) { @@ -4486,8 +4479,6 @@ bool ToolbarSaveInData::LoadToolbar( } } } - - return true; } IMPL_LINK_NOARG_TYPED( SvxToolbarConfigPage, SelectToolbarEntry, SvTreeListBox *, void ) @@ -4706,7 +4697,7 @@ IMPL_LINK_NOARG_TYPED( SvxToolbarConfigPage, AddFunctionHdl, SvxScriptSelectorDi AddFunction(); } -SvTreeListEntry* SvxToolbarConfigPage::AddFunction( +void SvxToolbarConfigPage::AddFunction( SvTreeListEntry* pTarget, bool bFront, bool bAllowDuplicates ) { SvTreeListEntry* pNewLBEntry = @@ -4733,8 +4724,6 @@ SvTreeListEntry* SvxToolbarConfigPage::AddFunction( { static_cast<ToolbarSaveInData*>( GetSaveInData() )->ApplyToolbar( pToolbar ); } - - return pNewLBEntry; } SvxToolbarEntriesListBox::SvxToolbarEntriesListBox(vcl::Window* pParent, SvxToolbarConfigPage* pPg) |