From 206543c55b4b74d6501a359fea5d2182f3635571 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 21 Mar 2021 19:44:05 +0100 Subject: [PATCH] fixup! Pass some parameters by reference/move --- src/fish_tests.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 6ad7558dd..bacad4115 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -3328,12 +3328,12 @@ static void test_complete() { completion_list_t cdwrap2_compl = do_complete(L"cdwrap2 ", {}); completions_sort_and_prioritize(&cdwrap2_compl); - size_t min_compl_size = std::min(cd_compl.size(), - std::min(cdwrap1_compl.size(), cdwrap2_compl.size())); + size_t min_compl_size = + std::min(cd_compl.size(), std::min(cdwrap1_compl.size(), cdwrap2_compl.size())); do_test(cd_compl.size() == min_compl_size); do_test(cdwrap1_compl.size() == min_compl_size); - do_test( cdwrap2_compl.size() == min_compl_size); + do_test(cdwrap2_compl.size() == min_compl_size); for (size_t i = 0; i < min_compl_size; ++i) { do_test(cd_compl[i].completion == cdwrap1_compl[i].completion); do_test(cdwrap1_compl[i].completion == cdwrap2_compl[i].completion); @@ -4207,7 +4207,7 @@ void history_tests_t::test_history() { history_item_t item(value, time(NULL)); item.required_paths = paths; before.push_back(item); - history->add(item); + history->add(std::move(item)); } history->save();