Code cleanup: size() vs empty(), possible memleaks, initialization list order. On behalf of lebedev.ri, see issue 1195
This commit is contained in:
@@ -501,7 +501,7 @@ void DiagonalCurveEditorSubGroup::restoreDisplayedHistogram() {
|
||||
}
|
||||
|
||||
void DiagonalCurveEditorSubGroup::storeCurveValues (CurveEditor* ce, const std::vector<double>& p) {
|
||||
if (p.size()) {
|
||||
if (!p.empty()) {
|
||||
DiagonalCurveType t = (DiagonalCurveType)p[0];
|
||||
for (int i=0; i<(int)p.size(); i++)
|
||||
|
||||
|
Reference in New Issue
Block a user