summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-02-26 21:07:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-02-26 21:07:16 +0100
commite08d84547fcb5db6f91deb1af3ec6b3a4b060caf (patch)
treeae9b308a054b0d2613972ab0d7468e5944a9fc52
parentb39660047aa0b8be811d529ee22e8f60d2f9c94e (diff)
loplugin:commaoperator
Change-Id: I481fe73256bf0d974c54a6419874fa76ea4beaa6
-rw-r--r--vcl/quartz/salbmp.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index bbb82c019fb3..8603f26e0359 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -111,11 +111,15 @@ bool QuartzSalBitmap::Create( CGLayerRef xLayer, int nBitmapBits,
DBG_ASSERT( xLayer, "QuartzSalBitmap::Create() from non-layered context" );
// sanitize input parameters
- if( nX < 0 )
- nWidth += nX, nX = 0;
+ if( nX < 0 ) {
+ nWidth += nX;
+ nX = 0;
+ }
- if( nY < 0 )
- nHeight += nY, nY = 0;
+ if( nY < 0 ) {
+ nHeight += nY;
+ nY = 0;
+ }
const CGSize aLayerSize = CGLayerGetSize( xLayer );
SAL_INFO("vcl.cg", "CGLayerGetSize(" << xLayer << ") = " << aLayerSize );