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 /apt-pkg/orderlist.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 'apt-pkg/orderlist.cc')
| -rw-r--r-- | apt-pkg/orderlist.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/orderlist.cc b/apt-pkg/orderlist.cc index 33d17fcec..83d2f2fb4 100644 --- a/apt-pkg/orderlist.cc +++ b/apt-pkg/orderlist.cc @@ -137,8 +137,8 @@ bool pkgOrderList::DoRun() { // Temp list unsigned long Size = Cache.Head().PackageCount; - std::unique_ptr<Package *[]> NList(new Package *[Size]); - std::unique_ptr<Package *[]> AfterList(new Package *[Size]); + auto NList = std::make_unique<Package *[]>(Size); + auto AfterList = std::make_unique<Package *[]>(Size); AfterEnd = AfterList.get(); Depth = 0; |
