From c9349f2ef6b52d34049b7309c261b55b72a2a0a6 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 26 Jul 2015 00:58:32 -0700 Subject: Continue to refine tokenizer interface Migrate some functions into tokenizer instance methods --- src/parse_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parse_tree.cpp') diff --git a/src/parse_tree.cpp b/src/parse_tree.cpp index c884f667..1583b804 100644 --- a/src/parse_tree.cpp +++ b/src/parse_tree.cpp @@ -1299,7 +1299,7 @@ bool parse_tree_from_string(const wcstring &str, parse_tree_flags_t parse_flags, if (errors == NULL) tok_options |= TOK_SQUASH_ERRORS; - tokenizer_t tok = tokenizer_t(str.c_str(), tok_options); + tokenizer_t tok(str.c_str(), tok_options); /* We are an LL(2) parser. We pass two tokens at a time. New tokens come in at index 1. Seed our queue with an initial token at index 1. */ parse_token_t queue[2] = {kInvalidToken, kInvalidToken}; -- cgit v1.2.3