diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-04 15:18:52 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-03-04 15:18:52 +0100 |
commit | 7b438c79af5450acc927add8ea8007aa25f7e691 (patch) | |
tree | 228ad71575cee0b8a5b09388d22d86dbc3e4b474 /src/formats/osml/OsmlStreamParser.cpp | |
parent | 11c6272abc2b34d861620b906bdee595674dca0f (diff) |
fixed bug #104
Diffstat (limited to 'src/formats/osml/OsmlStreamParser.cpp')
-rw-r--r-- | src/formats/osml/OsmlStreamParser.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/formats/osml/OsmlStreamParser.cpp b/src/formats/osml/OsmlStreamParser.cpp index 64a489d..daf800a 100644 --- a/src/formats/osml/OsmlStreamParser.cpp +++ b/src/formats/osml/OsmlStreamParser.cpp @@ -289,17 +289,17 @@ private: Tokenizer tokenizer; /** - * Stack containing the current commands. - */ - std::stack<Command> commands; - - /** * Variant containing the tokenized data that was returned from the * tokenizer as data. */ TokenizedData data; /** + * Stack containing the current commands. + */ + std::stack<Command> commands; + + /** * Variable containing the current location of the parser. */ SourceLocation location; @@ -422,7 +422,10 @@ public: /* Class OsmlStreamParserImpl */ OsmlStreamParserImpl::OsmlStreamParserImpl(CharReader &reader, Logger &logger) - : reader(reader), logger(logger), tokenizer(OsmlTokens) + : reader(reader), + logger(logger), + tokenizer(OsmlTokens), + data(reader.getSourceId()) { commands.emplace("", Variant::mapType{}, true); } |