From b95cf0ddd1aee517ed948155d43da4e2b64cfcdf Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Thu, 26 Feb 2015 00:21:33 +0100 Subject: Fixed non-initialized variable --- src/core/parser/utils/TokenizedData.cpp | 13 +++++++------ 1 file 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::max(); + namespace { /** * Structure used to represent the position of a token in the internal @@ -52,12 +58,6 @@ struct TokenMark { */ bool special; - /** - * Maximum token length. - */ - static constexpr TokenLength MaxTokenLength = - std::numeric_limits::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 -- cgit v1.2.3