diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-01 18:06:04 +0100 |
---|---|---|
committer | Andreas Stöckel <andreas@somweyr.de> | 2015-01-01 18:06:04 +0100 |
commit | 4484f6deea0e098a140e878484d020bec839d1bd (patch) | |
tree | f3e8b480a533b4158abe9918f16d9988c6b463b6 /src/core/parser/Parser.cpp | |
parent | 377b7b0213733307927bec9e39c8ccb063e6ba50 (diff) |
Using CharReader instead of inputstream in Parser function
Diffstat (limited to 'src/core/parser/Parser.cpp')
-rw-r--r-- | src/core/parser/Parser.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/parser/Parser.cpp b/src/core/parser/Parser.cpp index 23fd9b7..b5d9656 100644 --- a/src/core/parser/Parser.cpp +++ b/src/core/parser/Parser.cpp @@ -16,8 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <sstream> - #include "Parser.hpp" namespace ousia { @@ -25,8 +23,8 @@ namespace parser { Rooted<Node> Parser::parse(const std::string &str, ParserContext &ctx) { - std::istringstream is{str}; - return parse(is, ctx); + CharReader reader{str}; + return parse(reader, ctx); } } } |