diff options
author | Julian Andres Klode <jak@debian.org> | 2015-08-13 10:43:49 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-08-13 11:30:59 +0200 |
commit | 47c37a1bfc2f2f372bf057bf68bde0b3b6f0ec8f (patch) | |
tree | 2979963f0d61ba13ee6950017a120bb9988a3eac /apt-pkg | |
parent | eb8ef1bb77a8fe2909a861fff3255ef6330c8ed5 (diff) |
C++11: Switch from auto_ptr to unique_ptr
This is nicer
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/depcache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 02f61bf13..92b073908 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -2010,7 +2010,7 @@ bool pkgDepCache::MarkAndSweep(InRootSetFunc &rootFunc) } bool pkgDepCache::MarkAndSweep() { - std::auto_ptr<InRootSetFunc> f(GetRootSetFunc()); + std::unique_ptr<InRootSetFunc> f(GetRootSetFunc()); if(f.get() != NULL) return MarkAndSweep(*f.get()); else |