mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
remove some wcstring -> wchar_t* -> wcstring conversions
Mostly related to usage _(L"foo"), keeping in mind the _ macro does a wcstring().c_str() already. And a smattering of other trivial micro-optimizations certain to not help tangibly.
This commit is contained in:
@@ -2668,7 +2668,7 @@ static void test_complete() {
|
||||
do_test((completions.at(1).flags & COMPLETE_NO_SPACE) != 0);
|
||||
|
||||
// Test wraps.
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper1")) == L"");
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper1")).empty());
|
||||
complete_add_wrapper(L"wrapper1", L"wrapper2");
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper1")) == L"wrapper2");
|
||||
complete_add_wrapper(L"wrapper2", L"wrapper3");
|
||||
@@ -2679,7 +2679,7 @@ static void test_complete() {
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper2")) == L"wrapper3");
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper3")) == L"wrapper1");
|
||||
complete_remove_wrapper(L"wrapper1", L"wrapper2");
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper1")) == L"");
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper1")).empty());
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper2")) == L"wrapper3");
|
||||
do_test(comma_join(complete_get_wrap_targets(L"wrapper3")) == L"wrapper1");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user