From 56273f6429d290fe6e08e2823b74bca86cc918fb Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 21 Aug 2017 21:20:42 +0300 Subject: [PATCH] SonarQube warnings. --HG-- branch : develop --- src/libs/vgeometry/vabstractcubicbezierpath.cpp | 6 +----- src/libs/vgeometry/vabstractcurve.cpp | 1 - src/libs/vlayout/vbank.cpp | 2 -- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/libs/vgeometry/vabstractcubicbezierpath.cpp b/src/libs/vgeometry/vabstractcubicbezierpath.cpp index 9365ce0e7..b523e6e9c 100644 --- a/src/libs/vgeometry/vabstractcubicbezierpath.cpp +++ b/src/libs/vgeometry/vabstractcubicbezierpath.cpp @@ -132,11 +132,7 @@ int VAbstractCubicBezierPath::Segment(const QPointF &p) const for (qint32 i = 1; i <= CountSubSpl(); ++i) { const qreal t = GetSpline(i).ParamT(p); - if (not qFuzzyIsNull(t) && qFuzzyCompare(t, -1)) - { - continue; - } - else + if (qFuzzyIsNull(t) || not qFuzzyCompare(t, -1)) { index = i; break; diff --git a/src/libs/vgeometry/vabstractcurve.cpp b/src/libs/vgeometry/vabstractcurve.cpp index cc6c2ed9c..8a7d3ae1b 100644 --- a/src/libs/vgeometry/vabstractcurve.cpp +++ b/src/libs/vgeometry/vabstractcurve.cpp @@ -127,7 +127,6 @@ QVector VAbstractCurve::FromBegin(const QVector &points, const { segment.append(points.at(i+1)); } - continue; } } else diff --git a/src/libs/vlayout/vbank.cpp b/src/libs/vlayout/vbank.cpp index 9d889a9c7..d4fb66fc5 100644 --- a/src/libs/vlayout/vbank.cpp +++ b/src/libs/vlayout/vbank.cpp @@ -141,7 +141,6 @@ void VBank::Arranged(int i) if (small.contains(i)) { small.remove(i); - return; } } @@ -166,7 +165,6 @@ void VBank::NotArranged(int i) { unsorted.insert(i, small.value(i)); small.remove(i); - return; } }