reinitialize block stack for new files

this has only an effect if parsing the previous file failed in a place
with a non-empty stack.
This commit is contained in:
Oswald Buddenhagen
2010-09-16 12:30:44 +02:00
parent 173cd17f6e
commit 5f5d6c200d

View File

@@ -276,7 +276,8 @@ bool ProFileParser::read(ProFile *pro, const QString &in)
ushort *buf = (ushort *)xprBuff.constData();
// Parser state
m_blockstack.resize(m_blockstack.size() + 1);
m_blockstack.clear();
m_blockstack.resize(1);
QStack<ParseCtx> xprStack;
xprStack.reserve(10);