diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-09-16 12:30:44 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-09-16 13:42:05 +0200 |
commit | 5f5d6c200dcb957f55fcaedb2e6643eb1a899e65 (patch) | |
tree | adc00e5b0367013a54d54d634de85c1560d0d22b /src/shared | |
parent | 173cd17f6e7d11f63a809e0d8e0197b6a976a275 (diff) | |
download | qt-creator-5f5d6c200dcb957f55fcaedb2e6643eb1a899e65.tar.gz |
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.
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/proparser/profileparser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/proparser/profileparser.cpp b/src/shared/proparser/profileparser.cpp index 6c8d0c9fa8..d2b1123e6d 100644 --- a/src/shared/proparser/profileparser.cpp +++ b/src/shared/proparser/profileparser.cpp @@ -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); |