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/basehttp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods/basehttp.cc') diff --git a/methods/basehttp.cc b/methods/basehttp.cc index d335e6fa0..db0ed228f 100644 --- a/methods/basehttp.cc +++ b/methods/basehttp.cc @@ -330,7 +330,7 @@ static std::string fixURIEncoding(std::string const &part) { // if the server sends a space this is not an encoded URI // so other clients seem to encode it and we do it as well - if (part.find_first_of(" ") != std::string::npos) + if (part.find_first_of(' ') != std::string::npos) return aptMethod::URIEncode(part); return part; } -- cgit v1.2.3-70-g09d2