diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-18 14:13:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-18 21:59:55 +0200 |
commit | 7fa4f6409828eb77b710c8da54ff066174a7c20c (patch) | |
tree | ff8368648563ef7e8326e0c1a7f0ed6cbb0e855e /canvas/source/vcl/devicehelper.cxx | |
parent | cd0ab2cf5063242ef3bff3c6899cea4d4bd53485 (diff) |
loplugin:flatten in canvas
Change-Id: If14af63ab4f8fc7b9807319a2100f371ee103465
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92481
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source/vcl/devicehelper.cxx')
-rw-r--r-- | canvas/source/vcl/devicehelper.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/canvas/source/vcl/devicehelper.cxx b/canvas/source/vcl/devicehelper.cxx index 3a48c3f1a490..b9d4138aade1 100644 --- a/canvas/source/vcl/devicehelper.cxx +++ b/canvas/source/vcl/devicehelper.cxx @@ -196,21 +196,21 @@ namespace vclcanvas { static sal_Int32 nFilePostfixCount(0); - if( mpOutDev ) - { - OUString aFilename = "dbg_frontbuffer" + OUString::number(nFilePostfixCount) + ".bmp"; + if( !mpOutDev ) + return; - SvFileStream aStream( aFilename, StreamMode::STD_READWRITE ); + OUString aFilename = "dbg_frontbuffer" + OUString::number(nFilePostfixCount) + ".bmp"; - const ::Point aEmptyPoint; - OutputDevice& rOutDev = mpOutDev->getOutDev(); - bool bOldMap( rOutDev.IsMapModeEnabled() ); - rOutDev.EnableMapMode( false ); - WriteDIB(rOutDev.GetBitmapEx(aEmptyPoint, rOutDev.GetOutputSizePixel()), aStream, false); - rOutDev.EnableMapMode( bOldMap ); + SvFileStream aStream( aFilename, StreamMode::STD_READWRITE ); + + const ::Point aEmptyPoint; + OutputDevice& rOutDev = mpOutDev->getOutDev(); + bool bOldMap( rOutDev.IsMapModeEnabled() ); + rOutDev.EnableMapMode( false ); + WriteDIB(rOutDev.GetBitmapEx(aEmptyPoint, rOutDev.GetOutputSizePixel()), aStream, false); + rOutDev.EnableMapMode( bOldMap ); - ++nFilePostfixCount; - } + ++nFilePostfixCount; } } |