diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-05-17 18:22:18 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-05-17 18:22:18 +0200 |
commit | 6935cd05677544028e0d6baefc2e29933bf5fe8b (patch) | |
tree | c23aa485e3ca5d0e58d02aadf0af8c8e15c54ec3 /apt-pkg/depcache.h | |
parent | 27e8981a61bb9881154e727deb3d4adf75ad4d0a (diff) |
* apt-pkg/depcache.cc:
- use a boolean instead of an int for Add/Remove in AddStates
similar to how it works with AddSizes
Diffstat (limited to 'apt-pkg/depcache.h')
-rw-r--r-- | apt-pkg/depcache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index d3f9e3924..1a982ea18 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -316,10 +316,10 @@ class pkgDepCache : protected pkgCache::Namespace void Update(PkgIterator const &P); // Count manipulators - void AddSizes(const PkgIterator &Pkg, bool const &Invert = false); + void AddSizes(const PkgIterator &Pkg, bool const Invert = false); inline void RemoveSizes(const PkgIterator &Pkg) {AddSizes(Pkg, true);}; - void AddStates(const PkgIterator &Pkg,int Add = 1); - inline void RemoveStates(const PkgIterator &Pkg) {AddStates(Pkg,-1);}; + void AddStates(const PkgIterator &Pkg, bool const Invert = false); + inline void RemoveStates(const PkgIterator &Pkg) {AddStates(Pkg,true);}; public: |