diff options
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index 02340d845eb..326a20644b0 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -2204,13 +2204,11 @@ Slice::Unit::parse(FILE* file, bool debug) assert(!Slice::unit); Slice::unit = this; - _errors = 0; _currentComment = ""; _currentLine = 1; _currentIncludeLevel = 0; _currentFile = ""; _topLevelFile = ""; - _includeFiles.clear(); pushContainer(this); extern FILE* yyin; @@ -2273,7 +2271,8 @@ Slice::Unit::Unit(bool ignRedefs, bool all) : SyntaxTreeBase(0), Container(0), _ignRedefs(ignRedefs), - _all(all) + _all(all), + _errors(0) { _unit = this; } |