mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 00:01:16 -03:00
io.h: Add missing override
Found with clang's -Winconsistent-missing-destructor-override Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
586ac3dfa7
commit
69d0bb7c0d
@@ -412,7 +412,7 @@ std::string wcs2string(const wcstring &input) {
|
||||
|
||||
for (auto wc : input) {
|
||||
if (wc == INTERNAL_SEPARATOR) {
|
||||
; // do nothing
|
||||
// do nothing
|
||||
} else if (wc >= ENCODE_DIRECT_BASE && wc < ENCODE_DIRECT_BASE + 256) {
|
||||
result.push_back(wc - ENCODE_DIRECT_BASE);
|
||||
} else if (MB_CUR_MAX == 1) { // single-byte locale (C/POSIX/ISO-8859)
|
||||
@@ -450,7 +450,7 @@ static char *wcs2str_internal(const wchar_t *in, char *out) {
|
||||
|
||||
while (in[in_pos]) {
|
||||
if (in[in_pos] == INTERNAL_SEPARATOR) {
|
||||
; // do nothing
|
||||
// do nothing
|
||||
} else if (in[in_pos] >= ENCODE_DIRECT_BASE && in[in_pos] < ENCODE_DIRECT_BASE + 256) {
|
||||
out[out_pos++] = in[in_pos] - ENCODE_DIRECT_BASE;
|
||||
} else if (MB_CUR_MAX == 1) // single-byte locale (C/POSIX/ISO-8859)
|
||||
|
||||
Reference in New Issue
Block a user