aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/fish_indent.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-04-10 01:11:09 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-04-10 01:11:09 -0700
commit7ad6a90ea2e75388d42b5b223d9273119994037e (patch)
tree4fa090150986ec0998c585ca842a04efa7e756ea /src/fish_indent.cpp
parent574851f092358f5834afb0b529676924fcbd59c6 (diff)
Change parser_token_types from wcstring to const wchar_t *
Reduces allocations and startup time
Diffstat (limited to 'src/fish_indent.cpp')
-rw-r--r--src/fish_indent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fish_indent.cpp b/src/fish_indent.cpp
index 0e31f28e..d2e23943 100644
--- a/src/fish_indent.cpp
+++ b/src/fish_indent.cpp
@@ -104,7 +104,7 @@ static void dump_node(indent_t node_indent, const parse_node_t &node, const wcst
}
fwprintf(stderr, L"{off %4d, len %4d, indent %2u, %ls} [%ls|%ls|%ls]\n",
node.source_start, node.source_length, node_indent,
- parser_token_types[node.type].c_str(), prevc_str, source.substr(node.source_start,
+ parser_token_types[node.type], prevc_str, source.substr(node.source_start,
node.source_length).c_str(), nextc_str);
}