summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/devicehelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-04-18 14:13:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-04-18 21:59:55 +0200
commit7fa4f6409828eb77b710c8da54ff066174a7c20c (patch)
treeff8368648563ef7e8326e0c1a7f0ed6cbb0e855e /canvas/source/vcl/devicehelper.cxx
parentcd0ab2cf5063242ef3bff3c6899cea4d4bd53485 (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.cxx24
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;
}
}