SonarQube warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-08-21 21:20:42 +03:00
parent 54dec078da
commit 56273f6429
3 changed files with 1 additions and 8 deletions

View File

@ -132,11 +132,7 @@ int VAbstractCubicBezierPath::Segment(const QPointF &p) const
for (qint32 i = 1; i <= CountSubSpl(); ++i) for (qint32 i = 1; i <= CountSubSpl(); ++i)
{ {
const qreal t = GetSpline(i).ParamT(p); const qreal t = GetSpline(i).ParamT(p);
if (not qFuzzyIsNull(t) && qFuzzyCompare(t, -1)) if (qFuzzyIsNull(t) || not qFuzzyCompare(t, -1))
{
continue;
}
else
{ {
index = i; index = i;
break; break;

View File

@ -127,7 +127,6 @@ QVector<QPointF> VAbstractCurve::FromBegin(const QVector<QPointF> &points, const
{ {
segment.append(points.at(i+1)); segment.append(points.at(i+1));
} }
continue;
} }
} }
else else

View File

@ -141,7 +141,6 @@ void VBank::Arranged(int i)
if (small.contains(i)) if (small.contains(i))
{ {
small.remove(i); small.remove(i);
return;
} }
} }
@ -166,7 +165,6 @@ void VBank::NotArranged(int i)
{ {
unsorted.insert(i, small.value(i)); unsorted.insert(i, small.value(i));
small.remove(i); small.remove(i);
return;
} }
} }