Cppcheck warnings.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-08-15 21:16:47 +03:00
parent dde8f9638e
commit 45ce971a71
3 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ public:
{}
VArcData (const QString &formulaLength, const VPointF &center, 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)
{}

View File

@ -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);
}

View File

@ -94,7 +94,7 @@ void AddToCalc::redo()
QDomElement calcElement;
if (doc->GetActivNodeElement(VAbstractPattern::TagCalculation, calcElement))
{
if (cursor <= 0)
if (cursor == 0)
{
calcElement.appendChild(xml);
}