aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_indent.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-21 22:09:35 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-21 22:09:35 -0800
commita3a7c4879998f434e6bc5667ad9943f7f9e6aa74 (patch)
tree86e67a808599af834757cd42c16c80385796597f /fish_indent.cpp
parentf545fb2491d36e02dc6c4005ada86be8678bba78 (diff)
Modify tokenizer to store last token in a wcstring
Diffstat (limited to 'fish_indent.cpp')
-rw-r--r--fish_indent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish_indent.cpp b/fish_indent.cpp
index c50eeba6..1a7df124 100644
--- a/fish_indent.cpp
+++ b/fish_indent.cpp
@@ -95,7 +95,7 @@ static int indent(wcstring &out, const wcstring &in, int flags)
for (; tok_has_next(&tok); tok_next(&tok))
{
int type = tok_last_type(&tok);
- wchar_t *last = tok_last(&tok);
+ const wchar_t *last = tok_last(&tok);
switch (type)
{