Cppcheck warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-20 21:08:25 +03:00
parent d799bdce03
commit 3fe7ffa7eb

View File

@ -1296,8 +1296,7 @@ void VPatternConverter::FixSubPaths(int i, quint32 id, quint32 baseCurve)
} }
case 2: //strPointOfIntersectionCurves case 2: //strPointOfIntersectionCurves
{ {
quint32 spl = NULL_ID; quint32 spl = element.attribute(strCurve1).toUInt();
spl = element.attribute(strCurve1).toUInt();
if (spl == id+1 || spl == id+2) if (spl == id+1 || spl == id+2)
{ {
element.setAttribute(strCurve1, baseCurve); element.setAttribute(strCurve1, baseCurve);
@ -1330,8 +1329,7 @@ void VPatternConverter::FixSubPaths(int i, quint32 id, quint32 baseCurve)
} }
case 5: //strPointOfIntersectionArcs case 5: //strPointOfIntersectionArcs
{ {
quint32 arc = NULL_ID; quint32 arc = element.attribute(strFirstArc).toUInt();
arc = element.attribute(strFirstArc).toUInt();
if (arc == id+1 || arc == id+2) if (arc == id+1 || arc == id+2)
{ {
element.setAttribute(strFirstArc, baseCurve); element.setAttribute(strFirstArc, baseCurve);