Fixed InsertTag method
--HG-- branch : feature
This commit is contained in:
parent
56db3f6f1a
commit
84d6e157bb
|
@ -1098,7 +1098,7 @@ void VAbstractPattern::CheckTagExists(const QString &tag)
|
|||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VAbstractPattern::InsertTag(const QStringList tags, const QDomElement element)
|
||||
void VAbstractPattern::InsertTag(const QStringList &tags, const QDomElement &element)
|
||||
{
|
||||
QDomElement pattern = documentElement();
|
||||
for (int i = tags.indexOf(element.tagName())-1; i >= 0; --i)
|
||||
|
@ -1109,6 +1109,7 @@ void VAbstractPattern::InsertTag(const QStringList tags, const QDomElement eleme
|
|||
continue;
|
||||
}
|
||||
pattern.insertAfter(element, list.at(0));
|
||||
break;
|
||||
}
|
||||
SetVersion();
|
||||
}
|
||||
|
|
|
@ -265,7 +265,7 @@ protected:
|
|||
void SetActivPP(const QString& name);
|
||||
|
||||
void CheckTagExists(const QString &tag);
|
||||
void InsertTag(const QStringList tags, const QDomElement element);
|
||||
void InsertTag(const QStringList &tags, const QDomElement &element);
|
||||
|
||||
private:
|
||||
Q_DISABLE_COPY(VAbstractPattern)
|
||||
|
|
Loading…
Reference in New Issue
Block a user