diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-04-02 13:12:17 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-04-02 16:01:53 (GMT) |
commit | 3570e978058816745101a69b552ad9d07e349542 (patch) | |
tree | 0decb1ef7105740f300bec0c3674a1c38e1a4097 /tools | |
parent | 5fa1cba8220b5a73aa45c83a0878a6f7c3060343 (diff) | |
download | Qt-3570e978058816745101a69b552ad9d07e349542.zip Qt-3570e978058816745101a69b552ad9d07e349542.tar.gz Qt-3570e978058816745101a69b552ad9d07e349542.tar.bz2 |
re-initialize some variables for each file
Diffstat (limited to 'tools')
-rw-r--r-- | tools/linguist/shared/profileevaluator.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/linguist/shared/profileevaluator.cpp b/tools/linguist/shared/profileevaluator.cpp index a0771b4..ce53c27 100644 --- a/tools/linguist/shared/profileevaluator.cpp +++ b/tools/linguist/shared/profileevaluator.cpp @@ -157,11 +157,6 @@ ProFileEvaluator::Private::Private(ProFileEvaluator *q_) m_prevLineNo = 0; m_prevProFile = 0; m_verbose = true; - m_block = 0; - m_commentItem = 0; - m_syntaxError = 0; - m_lineNo = 0; - m_contNextLine = false; } bool ProFileEvaluator::Private::read(ProFile *pro) @@ -172,8 +167,12 @@ bool ProFileEvaluator::Private::read(ProFile *pro) return false; } + m_block = 0; + m_commentItem = 0; + m_contNextLine = false; m_syntaxError = false; m_lineNo = 1; + m_blockstack.clear(); m_blockstack.push(pro); QTextStream ts(&file); |