diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-26 21:07:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-26 21:07:16 +0100 |
commit | e08d84547fcb5db6f91deb1af3ec6b3a4b060caf (patch) | |
tree | ae9b308a054b0d2613972ab0d7468e5944a9fc52 /vcl/quartz/salbmp.cxx | |
parent | b39660047aa0b8be811d529ee22e8f60d2f9c94e (diff) |
loplugin:commaoperator
Change-Id: I481fe73256bf0d974c54a6419874fa76ea4beaa6
Diffstat (limited to 'vcl/quartz/salbmp.cxx')
-rw-r--r-- | vcl/quartz/salbmp.cxx | 12 |
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 ); |