From af5b9453a1908021cf75c348522c1a12eeb0dee4 Mon Sep 17 00:00:00 2001 From: Herman Semenoff Date: Wed, 8 Apr 2026 11:37:24 +0300 Subject: apt: funcs called with a string literal consisting of a single character Benchmark: - https://stackoverflow.com/questions/62058906/why-my-performance-benchmark-gives-me-wrong-results References: - https://clang.llvm.org/extra/clang-tidy/checks/performance/prefer-single-char-overloads.html --- methods/mirror.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods/mirror.cc') diff --git a/methods/mirror.cc b/methods/mirror.cc index 6da0b4258..6fbaa40e6 100644 --- a/methods/mirror.cc +++ b/methods/mirror.cc @@ -334,7 +334,7 @@ std::string MirrorMethod::GetMirrorFileURI(std::string const &Message, FetchItem auto const colon = uristr.find(':'); if (unlikely(colon == std::string::npos)) continue; - auto const plus = uristr.find("+"); + auto const plus = uristr.find('+'); if (plus < colon) { // started as tor+mirror+http we want to get the file via tor+http -- cgit v1.2.3-70-g09d2