diff options
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); } } } |