Removed unused variable.
--HG-- branch : develop
This commit is contained in:
parent
f2a111f0d2
commit
ad28a200f7
|
@ -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, "");
|
||||
}
|
||||
|
|
|
@ -43,7 +43,6 @@ private:
|
|||
Q_DISABLE_COPY(DeletePatternPiece)
|
||||
QString namePP;
|
||||
QDomElement patternPiece;
|
||||
QString mPath;
|
||||
QString previousPPName;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user