Fix all - 2 cppcheck performance hints

This commit is contained in:
heckflosse
2016-07-06 13:04:24 +02:00
parent a991d53bf3
commit c8779c04f5
43 changed files with 114 additions and 146 deletions

View File

@@ -641,10 +641,10 @@ bool MyFlatCurve::handleEvents (GdkEvent* event)
itrt = curve.rightTangent.begin();
for (int i = 0; i < closest_point; i++) {
itx++;
ity++;
itlt++;
itrt++;
++itx;
++ity;
++itlt;
++itrt;
}
curve.x.insert (itx, 0);
@@ -1327,10 +1327,10 @@ bool MyFlatCurve::pipetteButton1Pressed(EditDataProvider *provider, int modifier
itrt = curve.rightTangent.begin();
for (int i = 0; i < closest_point; i++) {
itx++;
ity++;
itlt++;
itrt++;
++itx;
++ity;
++itlt;
++itrt;
}
curve.x.insert (itx, 0);