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>
This commit is contained in:
Noel Grandin 2019-10-18 10:59:06 +02:00
parent 67d5fbe0d0
commit 729989d485
7 changed files with 6 additions and 9 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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,

View File

@ -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)
{

View File

@ -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);