diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-26 00:21:33 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-26 00:21:33 +0100 |
commit | b95cf0ddd1aee517ed948155d43da4e2b64cfcdf (patch) | |
tree | f5efdfe0028dd4b80b1312e50dc4e6849366d4b1 | |
parent | 12461ce97603f55fefc1863ac9fd179177a77804 (diff) |
Fixed non-initialized variable
-rw-r--r-- | src/core/parser/utils/TokenizedData.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/core/parser/utils/TokenizedData.cpp b/src/core/parser/utils/TokenizedData.cpp index aeefa26..bcbbe43 100644 --- a/src/core/parser/utils/TokenizedData.cpp +++ b/src/core/parser/utils/TokenizedData.cpp @@ -26,6 +26,12 @@ #include "TokenizedData.hpp" namespace ousia { +/** + * Maximum token length. + */ +constexpr TokenLength MaxTokenLength = + std::numeric_limits<TokenLength>::max(); + namespace { /** * Structure used to represent the position of a token in the internal @@ -53,12 +59,6 @@ struct TokenMark { bool special; /** - * Maximum token length. - */ - static constexpr TokenLength MaxTokenLength = - std::numeric_limits<TokenLength>::max(); - - /** * Constructor of the TokenMark structure, initializes all members with the * given values. * @@ -450,6 +450,7 @@ public: protectedChars.clear(); offsets.clear(); marks.clear(); + firstLinebreak = 0; currentIndentation = 0; lastIndentation = 0; numLinebreaks = 1; // Assume the stream starts with a linebreak |