diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 08:54:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 17:23:36 +0200 |
commit | ca4a3868c8314ae2f6246cc513baf78513042738 (patch) | |
tree | 8759ea46ca93c63e7b24a08cc976ee25b03835cc /vcl | |
parent | 82c6652a7ae8761d187440794c695035f7c3d6ed (diff) |
remove newly unused mpWindow member of UserDrawEvent
Change-Id: I4c8c2b1c894ea55195be4b8b97926b16b8106edb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113630
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/combobox.cxx | 1 | ||||
-rw-r--r-- | vcl/source/control/imp_listbox.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/status.cxx | 4 |
3 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index 6ba717abab5a..cf6e0cfec9eb 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -1278,7 +1278,6 @@ bool ComboBox::IsUserDrawEnabled() const void ComboBox::DrawEntry(const UserDrawEvent& rEvt) { - SAL_WARN_IF(rEvt.GetWindow() != GetMainWindow(), "vcl", "DrawEntry?!"); GetMainWindow()->DrawEntry(*rEvt.GetRenderContext(), rEvt.GetItemId(), /*bDrawImage*/false, /*bDrawText*/false); } diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx index 8f2269941986..25b42371e1c5 100644 --- a/vcl/source/control/imp_listbox.cxx +++ b/vcl/source/control/imp_listbox.cxx @@ -1634,7 +1634,7 @@ void ImplListBoxWindow::ImplPaint(vcl::RenderContext& rRenderContext, sal_Int32 nPos = GetEntryList()->FindEntry(GetEntryList()->GetEntryText(nPos)); nPos = nPos - GetEntryList()->GetMRUCount(); - UserDrawEvent aUDEvt(this, &rRenderContext, aRect, nPos, bSelected); + UserDrawEvent aUDEvt(&rRenderContext, aRect, nPos, bSelected); maUserDrawHdl.Call( &aUDEvt ); mbInUserDraw = false; } diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index e46147e1a87a..73b6ea80515a 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -430,14 +430,14 @@ void StatusBar::ImplDrawItem(vcl::RenderContext& rRenderContext, bool bOffScreen { mbInUserDraw = true; mpImplData->mpVirDev->EnableRTL( IsRTLEnabled() ); - UserDrawEvent aODEvt(this, mpImplData->mpVirDev, tools::Rectangle(Point(), aTextRectSize), pItem->mnId); + UserDrawEvent aODEvt(mpImplData->mpVirDev, tools::Rectangle(Point(), aTextRectSize), pItem->mnId); UserDraw(aODEvt); mpImplData->mpVirDev->EnableRTL(false); mbInUserDraw = false; } else { - UserDrawEvent aODEvt(this, &rRenderContext, aTextRect, pItem->mnId); + UserDrawEvent aODEvt(&rRenderContext, aTextRect, pItem->mnId); UserDraw(aODEvt); } } |