aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parse_util.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-26 00:58:32 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-26 00:58:32 -0700
commitc9349f2ef6b52d34049b7309c261b55b72a2a0a6 (patch)
tree398c7950161308138ef137db5885f5be7153ee71 /src/parse_util.cpp
parent4ebaa7b6bd595f37f66f8d77ee836c1e5a4ef647 (diff)
Continue to refine tokenizer interface
Migrate some functions into tokenizer instance methods
Diffstat (limited to 'src/parse_util.cpp')
-rw-r--r--src/parse_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse_util.cpp b/src/parse_util.cpp
index ac6cb8ca..bbee5d84 100644
--- a/src/parse_util.cpp
+++ b/src/parse_util.cpp
@@ -1169,7 +1169,7 @@ void parse_util_expand_variable_error(const wcstring &token, size_t global_token
&cmdsub_end,
true) > 0)
{
- token_after_parens = tok_first(paren_text.c_str());
+ token_after_parens = tok_first(paren_text);
}
/* Make sure we always show something */
@@ -1233,7 +1233,7 @@ static parser_test_error_bits_t detect_dollar_cmdsub_errors(size_t arg_src_offse
result_bits |= PARSER_TEST_ERROR;
if (out_errors != NULL)
{
- wcstring subcommand_first_token = tok_first(cmdsubst_src.c_str());
+ wcstring subcommand_first_token = tok_first(cmdsubst_src);
if (subcommand_first_token.empty())
{
// e.g. $(). Report somthing.