summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
diff options
context:
space:
mode:
authorHerman Semenoff <GermanAizek@yandex.ru>2026-04-08 11:51:08 +0300
committerJulian Andres Klode <jak@debian.org>2026-04-08 10:40:55 +0000
commitef70431f02e2ec13ecedab7ac342574e52d1877b (patch)
treede51c6f3ce74d0b7fd1ddacd0812cd1cbe116c14 /apt-pkg/contrib/fileutl.cc
parent5b649fb72ecdced056fb3daab02e88933cc7a32a (diff)
apt: push to emplace C++11 if possible
References: - https://www.reddit.com/r/cpp_questions/comments/pm63yx/why_clangtidy_says_use_emplace_back_instead_of/ - https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-emplace.html
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r--apt-pkg/contrib/fileutl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 69e6dc430..74f5ec8bc 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -3091,7 +3091,7 @@ std::vector<std::string> Glob(std::string const &pattern, int flags)
// append results
for(i=0;i<globbuf.gl_pathc;i++)
- result.push_back(string(globbuf.gl_pathv[i]));
+ result.emplace_back(globbuf.gl_pathv[i]);
globfree(&globbuf);
return result;