forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user