1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

LibTest: Fix minor const-correctness issue in TestSuite::find_cases()

This commit is contained in:
Andreas Kling 2023-02-19 23:31:59 +01:00
parent 08a90455ac
commit 485958bb6f

View file

@ -94,7 +94,7 @@ int TestSuite::main(DeprecatedString const& suite_name, int argc, char** argv)
NonnullRefPtrVector<TestCase> TestSuite::find_cases(DeprecatedString const& search, bool find_tests, bool find_benchmarks)
{
NonnullRefPtrVector<TestCase> matches;
for (auto const& t : m_cases) {
for (auto& t : m_cases) {
if (!search.is_empty() && !t.name().matches(search, CaseSensitivity::CaseInsensitive)) {
continue;
}