diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2019-07-15 19:14:36 +1000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-07-27 15:23:30 +0200 |
commit | 67950f00989dff4640ba83e540673375a2c60a13 (patch) | |
tree | cd4d35ab9f9e7cfbe9ee55cc00cf5d5c92ba0da3 /canvas | |
parent | 7360ddd34aa446e6439c733ef0f819a58d709744 (diff) |
tdf#74702: vcl add OutputDevice::Flush() to remove GetOutDevType()
Change-Id: I3e8775845e471517945876a48696747a46e5270a
Reviewed-on: https://gerrit.libreoffice.org/75616
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/canvashelper.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/canvas/source/vcl/canvashelper.cxx b/canvas/source/vcl/canvashelper.cxx index 47ea98d4b3c4..f423ad5b0318 100644 --- a/canvas/source/vcl/canvashelper.cxx +++ b/canvas/source/vcl/canvashelper.cxx @@ -1158,19 +1158,11 @@ namespace vclcanvas void CanvasHelper::flush() const { - if( mpOutDevProvider && mpOutDevProvider->getOutDev().GetOutDevType() == OUTDEV_WINDOW ) - { - // TODO(Q3): Evil downcast. And what's more, Window::Flush is - // not even const. Wah. - static_cast<vcl::Window&>(mpOutDevProvider->getOutDev()).Flush(); - } + if (mpOutDevProvider) + mpOutDevProvider->getOutDev().Flush(); - if( mp2ndOutDevProvider && mp2ndOutDevProvider->getOutDev().GetOutDevType() == OUTDEV_WINDOW ) - { - // TODO(Q3): Evil downcast. And what's more, Window::Flush is - // not even const. Wah. - static_cast<vcl::Window&>(mp2ndOutDevProvider->getOutDev()).Flush(); - } + if (mp2ndOutDevProvider) + mp2ndOutDevProvider->getOutDev().Flush(); } } |