]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-cache.cc
Deprecate SPtrArray<T> and convert everyone to unique_ptr<T[]>
[apt.git] / cmdline / apt-cache.cc
index a2c4454011b8a4101166773b247afd51f406c2f6..117a4429235c07aad383f6ec692086b0c2a806a8 100644 (file)
@@ -749,9 +749,9 @@ static bool ShowDepends(CommandLine &CmdL, bool const RevDepends)
              }
            
            // Display all solutions
-           SPtrArray<pkgCache::Version *> List = D.AllTargets();
-           pkgPrioSortList(*Cache,List);
-           for (pkgCache::Version **I = List; *I != 0; I++)
+           std::unique_ptr<pkgCache::Version *[]> List(D.AllTargets());
+           pkgPrioSortList(*Cache,List.get());
+           for (pkgCache::Version **I = List.get(); *I != 0; I++)
            {
               pkgCache::VerIterator V(*Cache,*I);
               if (V != Cache->VerP + V.ParentPkg()->VersionList ||