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 --- apt-pkg/indexcopy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg/indexcopy.cc') diff --git a/apt-pkg/indexcopy.cc b/apt-pkg/indexcopy.cc index 139b10316..089bfd2ce 100644 --- a/apt-pkg/indexcopy.cc +++ b/apt-pkg/indexcopy.cc @@ -161,7 +161,7 @@ bool IndexCopy::CopyPackages(string CDROM,string Name,vector &List, // Attempt to fix busted symlink support for one instance string OrigFile = File; string::size_type Start = File.find("binary-"); - string::size_type End = File.find("/",Start+3); + string::size_type End = File.find('/',Start+3); if (Start != string::npos && End != string::npos) { File.replace(Start,End-Start,"binary-all"); -- cgit v1.2.3-70-g09d2