From fdd846cd67def08f04cc616530adc144fc5435d7 Mon Sep 17 00:00:00 2001 From: наб Date: Thu, 14 Nov 2024 19:08:42 +0100 Subject: (+=)+= -> append().append() --- apt-pkg/contrib/fileutl.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'apt-pkg/contrib') diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index bd7076701..bb3422bcb 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -755,9 +755,11 @@ string flCombine(string Dir,string File) return File; if (File.length() >= 2 && File[0] == '.' && File[1] == '/') return File; - if (Dir[Dir.length()-1] == '/') - return Dir += File; - return (Dir += '/') += File; + + if (Dir.back() != '/') + Dir.append("/"); + Dir.append(File); + return Dir; } /*}}}*/ // flAbsPath - Return the absolute path of the filename /*{{{*/ -- cgit v1.2.3-70-g09d2