diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-04-08 10:41:49 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-04-08 10:41:49 +0000 |
| commit | 65b3ff4a262e73a71467f1aab5bdf2e1a9e00170 (patch) | |
| tree | 1f40f2afce10e3b793540e9905b624f113c2ee15 /cmdline/apt-sortpkgs.cc | |
| parent | fbde7ea4ce304a30e155a2bd9d014d196abbb496 (diff) | |
| parent | 23dba65f031954df896bc3c6dfb1a9705574886b (diff) | |
Merge branch 'make-unique' into 'main'
apt: modernize to make_unique C++17
See merge request apt-team/apt!567
Diffstat (limited to 'cmdline/apt-sortpkgs.cc')
| -rw-r--r-- | cmdline/apt-sortpkgs.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-sortpkgs.cc b/cmdline/apt-sortpkgs.cc index 8442a959d..f493ad0cb 100644 --- a/cmdline/apt-sortpkgs.cc +++ b/cmdline/apt-sortpkgs.cc @@ -115,7 +115,7 @@ static bool DoIt(string InFile) // Emit FileFd stdoutfd; stdoutfd.OpenDescriptor(STDOUT_FILENO, FileFd::WriteOnly, false); - auto const Buffer = std::unique_ptr<unsigned char[]>(new unsigned char[Largest+1]); + auto const Buffer = std::make_unique<unsigned char[]>(Largest+1); for (vector<PkgName>::iterator I = List.begin(); I != List.end(); ++I) { // Read in the Record. |
