Cppcheck warnings.
--HG-- branch : release
This commit is contained in:
parent
dde8f9638e
commit
45ce971a71
|
@ -59,7 +59,7 @@ public:
|
|||
{}
|
||||
|
||||
VArcData (const QString &formulaLength, const VPointF ¢er, qreal radius, const QString &formulaRadius, qreal f1,
|
||||
QString formulaF1 )
|
||||
const QString &formulaF1 )
|
||||
: f1(f1), formulaF1(formulaF1), f2(0), formulaF2("0"), radius(radius), formulaRadius(formulaRadius),
|
||||
center(center), isFlipped(false), formulaLength(formulaLength)
|
||||
{}
|
||||
|
|
|
@ -299,7 +299,7 @@ void VAbstractTool::AddRecord(const quint32 id, const Tool &toolType, VAbstractP
|
|||
}
|
||||
|
||||
quint32 cursor = doc->getCursor();
|
||||
if (cursor <= 0)
|
||||
if (cursor == 0)
|
||||
{
|
||||
history->append(record);
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ void AddToCalc::redo()
|
|||
QDomElement calcElement;
|
||||
if (doc->GetActivNodeElement(VAbstractPattern::TagCalculation, calcElement))
|
||||
{
|
||||
if (cursor <= 0)
|
||||
if (cursor == 0)
|
||||
{
|
||||
calcElement.appendChild(xml);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user