Removed unused variable.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-09-16 11:03:33 +03:00
parent f2a111f0d2
commit ad28a200f7
2 changed files with 1 additions and 3 deletions

View File

@ -31,14 +31,13 @@
//---------------------------------------------------------------------------------------------------------------------
DeletePatternPiece::DeletePatternPiece(VAbstractPattern *doc, const QString &namePP, QUndoCommand *parent)
: VUndoCommand(QDomElement(), doc, parent), namePP(namePP), patternPiece(QDomElement()), mPath(QString()),
: VUndoCommand(QDomElement(), doc, parent), namePP(namePP), patternPiece(QDomElement()),
previousPPName(QString())
{
setText(tr("delete pattern piece %1").arg(namePP));
QDomElement patternP = doc->GetPPElement(namePP);
patternPiece = patternP.cloneNode().toElement();
mPath = doc->MPath();
QDomNode previousPP = patternP.previousSibling();//find previous pattern piece
previousPPName = doc->GetParametrString(previousPP.toElement(), VAbstractPattern::AttrName, "");
}

View File

@ -43,7 +43,6 @@ private:
Q_DISABLE_COPY(DeletePatternPiece)
QString namePP;
QDomElement patternPiece;
QString mPath;
QString previousPPName;
};