summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-08 19:22:31 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 07:59:34 +0100
commit2dd61fb32ba325226a708e8c6e9f4def8028e612 (patch)
tree19f506c1cfeec8ef5de6f4ed7b00b566950f4493 /vcl
parenta4473b85d4527c017d18a28aad199c1f4dde745b (diff)
make these explicit
That makes it easier to debug as even if you uncomment some lines the rectangle will still be at the same position Change-Id: I5576b2702962bb15663e0170cadb0d49ef33c0ab
Diffstat (limited to 'vcl')
-rw-r--r--vcl/workben/vcldemo.cxx22
1 files changed, 10 insertions, 12 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index b3c488c649ee..2ab4b3fec399 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -263,19 +263,17 @@ void DemoWin::Paint( const Rectangle& rRect )
std::vector<Rectangle> aRegions(partitionAndClear(4,3));
- int i = 0;
- drawRadialLines(aRegions[i++]);
- drawText(aRegions[i++]);
- drawPoly(aRegions[i++]);
- drawEllipse(aRegions[i++]);
- drawCheckered(aRegions[i++]);
- drawBitmapEx(aRegions[i++]);
- drawBitmap(aRegions[i++]);
- drawGradient(aRegions[i++]);
- drawPolyPolgons(aRegions[i++]);
+ drawRadialLines(aRegions[0]);
+ drawText(aRegions[1]);
+ drawPoly(aRegions[2]);
+ drawEllipse(aRegions[3]);
+ drawCheckered(aRegions[4]);
+ drawBitmapEx(aRegions[5]);
+ drawBitmap(aRegions[6]);
+ drawGradient(aRegions[7]);
+ drawPolyPolgons(aRegions[8]);
// last - thumbnail all the above
- fetchDrawBitmap(aRegions[i++]);
- assert(i<=12);
+ fetchDrawBitmap(aRegions[9]);
}
class DemoApp : public Application