Fix some coverity and cppcheck issues

This commit is contained in:
heckflosse
2017-06-18 18:40:40 +02:00
parent ae67344f16
commit 8aff354df9
14 changed files with 30 additions and 27 deletions

View File

@@ -123,10 +123,9 @@ void CoordinateAdjuster::createWidgets(const std::vector<Axis> &axis)
axisAdjusters.resize(axis.size());
for (unsigned int i = 0; i < count; ++i) {
AxisAdjuster *currAdjuster = nullptr;
const Axis *currAxis = &(axis.at(i));
axisAdjusters.at(i) = new AxisAdjuster(this, currAxis, i);
currAdjuster = axisAdjusters.at(i);
AxisAdjuster *currAdjuster = axisAdjusters.at(i);
currAdjuster->rangeLowerBound = currAxis->rangeLowerBound;
currAdjuster->rangeUpperBound = currAxis->rangeUpperBound;