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/policy.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/policy.cc')
| -rw-r--r-- | apt-pkg/policy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index 7d11ba898..d91277d3b 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -109,7 +109,7 @@ bool pkgPolicy::InitDefaults() } // Apply the defaults.. - std::unique_ptr<bool[]> Fixed(new bool[Cache->HeaderP->PackageFileCount]); + auto Fixed = std::make_unique<bool[]>(Cache->HeaderP->PackageFileCount); memset(Fixed.get(),0,sizeof(Fixed[0])*Cache->HeaderP->PackageFileCount); StatusOverride = false; for (vector<Pin>::const_iterator I = Defaults.begin(); I != Defaults.end(); ++I) |
