mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
[clang-tidy] remove pointless string init
Found with readability-redundant-string-init Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
67e5473a11
commit
9636d9f5d3
|
@ -3778,7 +3778,7 @@ class history_tests_t {
|
||||||
};
|
};
|
||||||
|
|
||||||
static wcstring random_string() {
|
static wcstring random_string() {
|
||||||
wcstring result = L"";
|
wcstring result;
|
||||||
size_t max = 1 + random() % 32;
|
size_t max = 1 + random() % 32;
|
||||||
while (max--) {
|
while (max--) {
|
||||||
wchar_t c = 1 + random() % ESCAPE_TEST_CHAR;
|
wchar_t c = 1 + random() % ESCAPE_TEST_CHAR;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user