[Libreoffice-commits] core.git: vcl/quartz

Stephan Bergmann sbergman at redhat.com
Fri Feb 26 20:07:47 UTC 2016


 vcl/quartz/salbmp.cxx |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

New commits:
commit e08d84547fcb5db6f91deb1af3ec6b3a4b060caf
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Feb 26 21:07:16 2016 +0100

    loplugin:commaoperator
    
    Change-Id: I481fe73256bf0d974c54a6419874fa76ea4beaa6

diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index bbb82c0..8603f26 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 );


More information about the Libreoffice-commits mailing list