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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user