From 8a22bc93e0988188a87c0a787a9b32a7f74da84d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 22 Oct 2016 10:04:52 +0200 Subject: update unnecessaryoverride plugin to find pure forwarding methods which can be replaced with using declarations. Is there a more efficient way to code the search? Seems to slow the build down a little. Change-Id: I08cda21fa70dce6572e1acc71bf5e6df36bb951f Reviewed-on: https://gerrit.libreoffice.org/30157 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- svtools/source/config/colorcfg.cxx | 4 ++-- svtools/source/config/extcolorcfg.cxx | 4 ++-- svtools/source/contnr/simptabl.cxx | 5 ----- svtools/source/uno/wizard/wizardshell.hxx | 4 ++-- 4 files changed, 6 insertions(+), 11 deletions(-) (limited to 'svtools') diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx index 12dda23476ab..5546f90499bb 100644 --- a/svtools/source/config/colorcfg.cxx +++ b/svtools/source/config/colorcfg.cxx @@ -92,8 +92,8 @@ public: void AddScheme(const OUString& rNode); void RemoveScheme(const OUString& rNode); - void SetModified(){ConfigItem::SetModified();} - void ClearModified(){ConfigItem::ClearModified();} + using ConfigItem::SetModified; + using ConfigItem::ClearModified; void SettingsChanged(); bool GetAutoDetectSystemHC() {return m_bAutoDetectSystemHC;} diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx index 3fd760171bc1..cdf060cb2def 100644 --- a/svtools/source/config/extcolorcfg.cxx +++ b/svtools/source/config/extcolorcfg.cxx @@ -119,8 +119,8 @@ public: void AddScheme(const OUString& rNode); void RemoveScheme(const OUString& rNode); - void SetModified(){ConfigItem::SetModified();} - void ClearModified(){ConfigItem::ClearModified();} + using ConfigItem::SetModified; + using ConfigItem::ClearModified; void SettingsChanged(); static void DisableBroadcast(); diff --git a/svtools/source/contnr/simptabl.cxx b/svtools/source/contnr/simptabl.cxx index 966596f6e218..95725e692df1 100644 --- a/svtools/source/contnr/simptabl.cxx +++ b/svtools/source/contnr/simptabl.cxx @@ -192,11 +192,6 @@ void SvSimpleTable::SetTabs() } } -void SvSimpleTable::SetTabs(const long* pTabs, MapUnit eMapUnit) -{ - SvHeaderTabListBox::SetTabs(pTabs,eMapUnit); -} - void SvSimpleTable::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) { SvHeaderTabListBox::Paint(rRenderContext, rRect); diff --git a/svtools/source/uno/wizard/wizardshell.hxx b/svtools/source/uno/wizard/wizardshell.hxx index dd1442e16a8d..34016a16f259 100644 --- a/svtools/source/uno/wizard/wizardshell.hxx +++ b/svtools/source/uno/wizard/wizardshell.hxx @@ -71,8 +71,8 @@ namespace svt { namespace uno { return skipBackwardUntil( impl_pageIdToState( i_nPageId ) ); } - bool travelNext() { return WizardShell_Base::travelNext(); } - bool travelPrevious() { return WizardShell_Base::travelPrevious(); } + using WizardShell_Base::travelNext; + using WizardShell_Base::travelPrevious; void activatePath( const sal_Int16 i_nPathID, const bool i_bFinal ) { -- cgit