diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-02 01:14:05 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-02 01:14:05 -0700 |
commit | fd15d30987af6104c060b91c60dbe34c8c3a42d7 (patch) | |
tree | a45fd728be1c225c4545eed049c5994caa038fdd /reader.cpp | |
parent | 03e36bda720874f2383d692035eaa6f67bd5517e (diff) |
Add some const, fix spaces
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3576,10 +3576,10 @@ const wchar_t *reader_readline(void) /* Make sure we have two tokens */ if (prev_begin < prev_end && tok_begin < tok_end && tok_begin > prev_begin) { - wcstring prev(prev_begin, prev_end - prev_begin); - wcstring sep(prev_end, tok_begin - prev_end); - wcstring tok(tok_begin, tok_end - tok_begin); - wcstring trail(tok_end, &buff[len] - tok_end); + const wcstring prev(prev_begin, prev_end - prev_begin); + const wcstring sep(prev_end, tok_begin - prev_end); + const wcstring tok(tok_begin, tok_end - tok_begin); + const wcstring trail(tok_end, &buff[len] - tok_end); /* Compose new command line with swapped tokens */ wcstring new_buff(buff, prev_begin - buff); |