[Kst] branches/work/kst/portto4/kst/src/libkstmath
Peter Kümmel
syntheticpp at gmx.net
Tue Aug 31 21:02:27 CEST 2010
SVN commit 1170379 by kuemmel:
don't copy in loop
M +1 -1 image.cpp
--- branches/work/kst/portto4/kst/src/libkstmath/image.cpp #1170378:1170379
@@ -433,7 +433,7 @@
if (hasContourMap()) {
QColor lineColor = contourColor();
- foreach(CoutourLineDetails lineDetails, _lines) {
+ foreach(const CoutourLineDetails& lineDetails, _lines) {
p->setPen(QPen(lineColor, lineDetails._lineWidth, Qt::SolidLine, Qt::RoundCap, Qt::MiterJoin));
p->drawLine(lineDetails._line);
}
More information about the Kst
mailing list