From 9636d9f5d392312e2bbfc4af22dbfa64082593df Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 6 Jun 2020 15:19:19 -0700 Subject: [PATCH] [clang-tidy] remove pointless string init Found with readability-redundant-string-init Signed-off-by: Rosen Penev --- src/fish_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 3972bea63..b08346c50 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -3778,7 +3778,7 @@ class history_tests_t { }; static wcstring random_string() { - wcstring result = L""; + wcstring result; size_t max = 1 + random() % 32; while (max--) { wchar_t c = 1 + random() % ESCAPE_TEST_CHAR;