mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #19565 from cyyever:minor_fix
Local objects optimization in calibration init
* use emplace_back
* use {} initilization
* remove a tailing white space
This commit is contained in:
@@ -345,7 +345,6 @@ struct HWFeatures
|
||||
|
||||
HWFeatures(bool run_initialize = false)
|
||||
{
|
||||
memset( have, 0, sizeof(have[0]) * MAX_FEATURE );
|
||||
if (run_initialize)
|
||||
initialize();
|
||||
}
|
||||
@@ -730,7 +729,7 @@ struct HWFeatures
|
||||
}
|
||||
}
|
||||
|
||||
bool have[MAX_FEATURE+1];
|
||||
bool have[MAX_FEATURE+1]{};
|
||||
};
|
||||
|
||||
static HWFeatures featuresEnabled(true), featuresDisabled = HWFeatures(false);
|
||||
|
||||
Reference in New Issue
Block a user