mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
cppcheck: fix some reports
All of these: (performance) Prefer prefix ++/-- operators for non-primitive types. [modules/calib3d/src/fundam.cpp:1049] -> [modules/calib3d/src/fundam.cpp:1049]: (style) Same expression on both sides of '&&'.
This commit is contained in:
@@ -8033,7 +8033,7 @@ void AGAST(InputArray _img, std::vector<KeyPoint>& keypoints, int threshold, boo
|
||||
makeAgastOffsets(pixel_, (int)img.step, type);
|
||||
|
||||
std::vector<KeyPoint>::iterator kpt;
|
||||
for(kpt = kpts.begin(); kpt != kpts.end(); kpt++)
|
||||
for(kpt = kpts.begin(); kpt != kpts.end(); ++kpt)
|
||||
{
|
||||
switch(type) {
|
||||
case AgastFeatureDetector::AGAST_5_8:
|
||||
@@ -8149,7 +8149,7 @@ void AGAST(InputArray _img, std::vector<KeyPoint>& keypoints, int threshold, boo
|
||||
}
|
||||
}
|
||||
}
|
||||
currCorner++;
|
||||
++currCorner;
|
||||
}
|
||||
|
||||
// collecting maximum corners
|
||||
|
||||
Reference in New Issue
Block a user