summaryrefslogtreecommitdiff
path: root/src/core/parser/Parser.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-01 18:06:04 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-01-01 18:06:04 +0100
commit4484f6deea0e098a140e878484d020bec839d1bd (patch)
treef3e8b480a533b4158abe9918f16d9988c6b463b6 /src/core/parser/Parser.cpp
parent377b7b0213733307927bec9e39c8ccb063e6ba50 (diff)
Using CharReader instead of inputstream in Parser function
Diffstat (limited to 'src/core/parser/Parser.cpp')
-rw-r--r--src/core/parser/Parser.cpp6
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);
}
}
}