diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-18 10:59:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-21 10:00:23 +0200 |
commit | 729989d485b0932bfac6997aa73e66364dc80cee (patch) | |
tree | 6f97c1497f7446de45bf75512fd220bf1967007a | |
parent | 67d5fbe0d0f63407e768d329ec7a2bdc131fdaf9 (diff) |
loplugin:virtualdead unused param in TitleBar::PaintDecoration
Change-Id: I3dd8ee6492be1a4b3d1032c4d50cc01111d748cb
Reviewed-on: https://gerrit.libreoffice.org/81185
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | compilerplugins/clang/virtualdead.unusedparams.results | 3 | ||||
-rw-r--r-- | include/sfx2/sidebar/DeckTitleBar.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/sidebar/PanelTitleBar.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/sidebar/TitleBar.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/DeckTitleBar.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/PanelTitleBar.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/TitleBar.cxx | 2 |
7 files changed, 6 insertions, 9 deletions
diff --git a/compilerplugins/clang/virtualdead.unusedparams.results b/compilerplugins/clang/virtualdead.unusedparams.results index 0bf53a2da0ce..2a25ea9b9981 100644 --- a/compilerplugins/clang/virtualdead.unusedparams.results +++ b/compilerplugins/clang/virtualdead.unusedparams.results @@ -142,9 +142,6 @@ include/sfx2/sfxstatuslistener.hxx:49 include/sfx2/sidebar/ControllerItem.hxx:44 void sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface::NotifyItemUpdate(const unsigned short,const enum SfxItemState,const class SfxPoolItem *,const _Bool,) 1110 -include/sfx2/sidebar/TitleBar.hxx:61 - void sfx2::sidebar::TitleBar::PaintDecoration(class OutputDevice &,const class tools::Rectangle &,) - 10 include/sfx2/stbitem.hxx:100 _Bool SfxStatusBarControl::MouseButtonUp(const class MouseEvent &,) 0 diff --git a/include/sfx2/sidebar/DeckTitleBar.hxx b/include/sfx2/sidebar/DeckTitleBar.hxx index 26e1a29b4216..555ff0abd641 100644 --- a/include/sfx2/sidebar/DeckTitleBar.hxx +++ b/include/sfx2/sidebar/DeckTitleBar.hxx @@ -38,7 +38,7 @@ public: protected: virtual tools::Rectangle GetTitleArea(const tools::Rectangle& rTitleBarBox) override; - virtual void PaintDecoration(vcl::RenderContext& rRenderContext, const tools::Rectangle& rTitleBarBox) override; + virtual void PaintDecoration(vcl::RenderContext& rRenderContext) override; virtual sidebar::Paint GetBackgroundPaint() override; virtual void HandleToolBoxItemClick(const sal_uInt16 nItemIndex) override; virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() override; diff --git a/include/sfx2/sidebar/PanelTitleBar.hxx b/include/sfx2/sidebar/PanelTitleBar.hxx index 1965caac687d..6c3216303e3c 100644 --- a/include/sfx2/sidebar/PanelTitleBar.hxx +++ b/include/sfx2/sidebar/PanelTitleBar.hxx @@ -46,7 +46,7 @@ public: protected: virtual tools::Rectangle GetTitleArea(const tools::Rectangle& rTitleBarBox) override; - virtual void PaintDecoration(vcl::RenderContext& rRenderContext, const tools::Rectangle& rTitleBarBox) override; + virtual void PaintDecoration(vcl::RenderContext& rRenderContext) override; virtual sidebar::Paint GetBackgroundPaint() override; virtual void HandleToolBoxItemClick (const sal_uInt16 nItemIndex) override; virtual css::uno::Reference<css::accessibility::XAccessible> CreateAccessible() override; diff --git a/include/sfx2/sidebar/TitleBar.hxx b/include/sfx2/sidebar/TitleBar.hxx index f69a7ef4e047..f06f6aa83fa8 100644 --- a/include/sfx2/sidebar/TitleBar.hxx +++ b/include/sfx2/sidebar/TitleBar.hxx @@ -58,7 +58,7 @@ protected: OUString msTitle; virtual tools::Rectangle GetTitleArea (const tools::Rectangle& rTitleBarBox) = 0; - virtual void PaintDecoration (vcl::RenderContext& rRenderContext, const tools::Rectangle& rTitleBarBox) = 0; + virtual void PaintDecoration (vcl::RenderContext& rRenderContext) = 0; void PaintFocus(vcl::RenderContext& rRenderContext, const tools::Rectangle& rFocusBox); virtual sidebar::Paint GetBackgroundPaint() = 0; virtual void HandleToolBoxItemClick (const sal_uInt16 nItemIndex); diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx index 68301704972a..95e11dded6e3 100644 --- a/sfx2/source/sidebar/DeckTitleBar.cxx +++ b/sfx2/source/sidebar/DeckTitleBar.cxx @@ -93,7 +93,7 @@ tools::Rectangle DeckTitleBar::GetDragArea() ); } -void DeckTitleBar::PaintDecoration(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rTitleBarBox*/) +void DeckTitleBar::PaintDecoration(vcl::RenderContext& rRenderContext) { Image aImage (Theme::GetImage(Theme::Image_Grip)); const Point aTopLeft(gaLeftGripPadding, diff --git a/sfx2/source/sidebar/PanelTitleBar.cxx b/sfx2/source/sidebar/PanelTitleBar.cxx index 6071da7da9dd..4c3eca532164 100644 --- a/sfx2/source/sidebar/PanelTitleBar.cxx +++ b/sfx2/source/sidebar/PanelTitleBar.cxx @@ -120,7 +120,7 @@ tools::Rectangle PanelTitleBar::GetTitleArea (const tools::Rectangle& rTitleBarB return rTitleBarBox; } -void PanelTitleBar::PaintDecoration (vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rTitleBarBox*/) +void PanelTitleBar::PaintDecoration (vcl::RenderContext& rRenderContext) { if (mpPanel != nullptr) { diff --git a/sfx2/source/sidebar/TitleBar.cxx b/sfx2/source/sidebar/TitleBar.cxx index 3d6f7ad5a5d1..8f45bb751c0c 100644 --- a/sfx2/source/sidebar/TitleBar.cxx +++ b/sfx2/source/sidebar/TitleBar.cxx @@ -82,7 +82,7 @@ void TitleBar::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& Size aWindowSize (GetSizePixel()); tools::Rectangle aTitleBarBox(0,0, aWindowSize.Width(), aWindowSize.Height()); - PaintDecoration(rRenderContext, aTitleBarBox); + PaintDecoration(rRenderContext); const tools::Rectangle aTitleBox(GetTitleArea(aTitleBarBox)); PaintTitle(rRenderContext, aTitleBox); PaintFocus(rRenderContext, aTitleBox); |