diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:17:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-11-29 17:17:32 +0100 |
commit | 8b30c5228b9d2031e5bbd2511a3bbe5f760ce836 (patch) | |
tree | 26672a40cebfdaf1f2c880b40b4b94d19ec575c8 /vcl/source/gdi/bitmap3.cxx | |
parent | 7661bbbaef31adfdb298b1447301b24a70f85834 (diff) |
Rewrite some (trivial) assignments inside if/while conditions: vcl
Change-Id: I26fd9bf9838b0d9d6cf35dc62195216a0c1333ee
Diffstat (limited to 'vcl/source/gdi/bitmap3.cxx')
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index acc6c4baeac0..fcf3751ced12 100644 --- a/vcl/source/gdi/bitmap3.cxx +++ b/vcl/source/gdi/bitmap3.cxx @@ -774,7 +774,8 @@ bool Bitmap::ImplConvertDown(sal_uInt16 nBitCount, Color* pExtColor) // Refill/copy row buffer pQLine1 = pQLine2; - pQLine2 = (bQ1 = !bQ1) ? aErrQuad2.data() : aErrQuad1.data(); + bQ1 = !bQ1; + pQLine2 = bQ1 ? aErrQuad2.data() : aErrQuad1.data(); if (nYTmp < nHeight) { @@ -1608,7 +1609,8 @@ bool Bitmap::ImplDitherFloyd16() // Refill/copy row buffer pQLine1 = pQLine2; - pQLine2 = ( bQ1 = !bQ1 ) ? pErrQuad2.get() : pErrQuad1.get(); + bQ1 = !bQ1; + pQLine2 = bQ1 ? pErrQuad2.get() : pErrQuad1.get(); if( nYTmp < nHeight ) for( nX = 0; nX < nWidth; nX++ ) |