vcl: Pass Window::Draw outdev param by ref

This makes clear that it is always non-null.

Change-Id: Id29efa073dae8ce01657ec28493d5f63a564d0ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205350
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn
2026-05-20 00:38:47 +02:00
parent 12fbe0df59
commit 7b68bd0779
44 changed files with 357 additions and 354 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ namespace frm
if ( eTargetUnit != MapUnit::MapPixel )
aPos = pTargetDevice->PixelToLogic( aPos );
pControl->Draw( pTargetDevice, aPos, SystemTextColorFlags::NoControls );
pControl->Draw(*pTargetDevice, aPos, SystemTextColorFlags::NoControls);
}
+3 -2
View File
@@ -289,9 +289,10 @@ namespace frm
return bDone || Control::EventNotify(_rNEvt);
}
void RichTextControl::Draw( OutputDevice* _pDev, const Point& _rPos, SystemTextColorFlags /*_nFlags*/ )
void RichTextControl::Draw(OutputDevice& rDev, const Point& _rPos,
SystemTextColorFlags /*_nFlags*/)
{
m_pImpl->Draw( _pDev, _rPos, _pDev->PixelToLogic(GetSizePixel()) );
m_pImpl->Draw(&rDev, _rPos, rDev.PixelToLogic(GetSizePixel()));
}
EditView& RichTextControl::getView()
+1 -1
View File
@@ -96,7 +96,7 @@ namespace frm
EditView& getView();
// Window overridables
virtual void Draw( OutputDevice* _pDev, const Point& _rPos, SystemTextColorFlags _nFlags ) override;
virtual void Draw(OutputDevice& rDev, const Point& _rPos, SystemTextColorFlags _nFlags) override;
protected:
// Window overridables