Use += instead of temporaries

clang-tidy explains this is better. I hate C++.
This commit is contained in:
Fabian Homborg 2022-05-19 21:10:20 +02:00
parent 633fd5000e
commit 3991af9ed6

View File

@ -691,7 +691,9 @@ static int path_resolve(parser_t &parser, io_streams_t &streams, int argc, const
real = normalize_path(*real, false);
break;
}
rest = wbasename(next) + L'/' + rest;
rest = wbasename(next);
rest += L'/';
rest += rest;
}
if (!real) {
continue;