From 35a0f604e00c42eaf13fa1a01a103d1e1d421cbb Mon Sep 17 00:00:00 2001 From: TC Wang Date: Thu, 8 Sep 2022 00:34:14 -0700 Subject: [PATCH] Fix lint suggestion that pass const reference for std::string. --- src/tests/test_schedulers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_schedulers.cpp b/src/tests/test_schedulers.cpp index 913253bd2..7596aa8d6 100644 --- a/src/tests/test_schedulers.cpp +++ b/src/tests/test_schedulers.cpp @@ -459,7 +459,7 @@ SCENARIO("trampoline scheduler dispatches task in the same thread") } } -static std::vector trampoline_expected_simulate_nested_scheduling(std::string thread_id) +static std::vector trampoline_expected_simulate_nested_scheduling(const std::string& thread_id) { return std::vector{ "Task 1 starts "s + thread_id,