diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2013-08-03 20:57:37 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2013-08-03 20:57:37 +0000 |
| commit | 2580137d7c69ba5752ca7ce698d6cf104ff7f00c (patch) | |
| tree | 0e0625f54a21c0390f5b5ec1415bfcaf0e7c00f4 /src/livarot/ShapeRaster.cpp | |
| parent | fix initialization (diff) | |
| download | inkscape-2580137d7c69ba5752ca7ce698d6cf104ff7f00c.tar.gz inkscape-2580137d7c69ba5752ca7ce698d6cf104ff7f00c.zip | |
fix small "performance" issues (cppcheck)
(bzr r12461)
Diffstat (limited to 'src/livarot/ShapeRaster.cpp')
| -rw-r--r-- | src/livarot/ShapeRaster.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/livarot/ShapeRaster.cpp b/src/livarot/ShapeRaster.cpp index b7b087fba..4c5bdc1ac 100644 --- a/src/livarot/ShapeRaster.cpp +++ b/src/livarot/ShapeRaster.cpp @@ -1131,8 +1131,7 @@ void Shape::Scan(float &pos, int &curP, float to, AlphaLigne *line, bool exact, int curPt = curP; while ( curPt < numberOfPoints() && getPoint(curPt).x[1] <= to ) { - int nPt = -1; - nPt = curPt++; + int nPt = curPt++; int nbUp; int nbDn; @@ -1435,8 +1434,7 @@ void Shape::QuickScan(float &pos, int &curP, float to, FillRule directed, BitLig int curPt = curP; while ( curPt < numberOfPoints() && getPoint(curPt).x[1] <= to ) { - int nPt = -1; - nPt = curPt++; + int nPt = curPt++; int nbUp; int nbDn; |
