diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-22 10:04:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-28 12:56:17 +0000 |
commit | 8a22bc93e0988188a87c0a787a9b32a7f74da84d (patch) | |
tree | 5b0c9bd79ee88be0754687fe552729e8470f5db2 /include/svtools | |
parent | 99fbcffa3d85c00770977e205626493ec2be1883 (diff) |
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 <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/ctrlbox.hxx | 5 | ||||
-rw-r--r-- | include/svtools/headbar.hxx | 3 | ||||
-rw-r--r-- | include/svtools/simptabl.hxx | 2 | ||||
-rw-r--r-- | include/svtools/wizardmachine.hxx | 4 |
4 files changed, 5 insertions, 9 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index 68fef1251b41..c1ad071123eb 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -178,10 +178,7 @@ public: { ListBox::SelectEntry( rStr ); } void SelectEntry( const Color& rColor ); Color GetSelectEntryColor() const; - bool IsEntrySelected(const OUString& rStr ) const - { - return ListBox::IsEntrySelected(rStr); - } + using ListBox::IsEntrySelected; bool IsEntrySelected(const Color& rColor) const { diff --git a/include/svtools/headbar.hxx b/include/svtools/headbar.hxx index 3e1f281b9960..44250e874810 100644 --- a/include/svtools/headbar.hxx +++ b/include/svtools/headbar.hxx @@ -319,8 +319,7 @@ public: Size CalcWindowSizePixel() const; - inline void SetHelpId( const OString& rId ) { Window::SetHelpId( rId ); } - + using Window::SetHelpId; inline void SetStartDragHdl( const Link<HeaderBar*,void>& rLink ) { maStartDragHdl = rLink; } inline void SetDragHdl( const Link<HeaderBar*,void>& rLink ) { maDragHdl = rLink; } diff --git a/include/svtools/simptabl.hxx b/include/svtools/simptabl.hxx index 5f180eac1ccc..ca0f5b6d22e6 100644 --- a/include/svtools/simptabl.hxx +++ b/include/svtools/simptabl.hxx @@ -98,7 +98,7 @@ public: sal_uInt16 nCol=HEADERBAR_APPEND, HeaderBarItemBits nBits = HeaderBarItemBits::STDSTYLE); - void SetTabs(const long* pTabs, MapUnit = MapUnit::MapAppFont); + using SvHeaderTabListBox::SetTabs; void ClearHeader(); diff --git a/include/svtools/wizardmachine.hxx b/include/svtools/wizardmachine.hxx index 58c20ddf16c4..d2a91ccf49b2 100644 --- a/include/svtools/wizardmachine.hxx +++ b/include/svtools/wizardmachine.hxx @@ -146,8 +146,8 @@ namespace svt { private: // restrict access to some aspects of our base class - SVT_DLLPRIVATE void AddPage( TabPage* pPage ) { WizardDialog::AddPage(pPage); } - SVT_DLLPRIVATE void SetPage( sal_uInt16 nLevel, TabPage* pPage ) { WizardDialog::SetPage(nLevel, pPage); } + using WizardDialog::AddPage; + using WizardDialog::SetPage; // TabPage* GetPage( sal_uInt16 nLevel ) const { return WizardDialog::GetPage(nLevel); } // TODO: probably the complete page handling (next, previous etc.) should be prohibited ... |