diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-04-03 23:34:20 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:32 +0200 |
commit | 9884b69cde888f2f6c53c2616edbef75f84cc2fc (patch) | |
tree | 05ad4ba013a4a7d7908495be76d03fb74a2c506f /src/core/parser/utils | |
parent | 29a057d1d940722f6b01b137e059c8c5e79af668 (diff) |
clang compatibility: disambiguate template parameter
Diffstat (limited to 'src/core/parser/utils')
-rw-r--r-- | src/core/parser/utils/Tokenizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/parser/utils/Tokenizer.cpp b/src/core/parser/utils/Tokenizer.cpp index 8d540a6..8bc8b23 100644 --- a/src/core/parser/utils/Tokenizer.cpp +++ b/src/core/parser/utils/Tokenizer.cpp @@ -162,12 +162,12 @@ public: Tokenizer::Tokenizer() : nextTokenId(0) {} -template <bool read> +template <bool tRead> bool Tokenizer::next(CharReader &reader, Token &token, TokenizedData &data) { // If we're in the read mode, reset the char reader peek position to the // current read position - if (read) { + if (tRead) { reader.resetPeek(); } @@ -265,7 +265,7 @@ bool Tokenizer::next(CharReader &reader, Token &token, TokenizedData &data) // Seek to the end of the current token const size_t end = bestMatch.token.location.getEnd(); - if (read) { + if (tRead) { reader.seek(end); } else { reader.seekPeekCursor(end); |