summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-06-03 09:50:06 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-06-03 09:50:06 +0200
commit81305a0b30cc12aa6d32081bbdcf930907ecfbbe (patch)
tree14369bed1e8bd905c7ee886d9316f5cfb06eeaeb /apt-pkg/depcache.h
parente2c66de5c5e63d8400efb0522c31fbe1ec225f93 (diff)
deprecate AddSize with Multiplier as it is unused and switch to
boolean instead to handle the sizes more gracefully.
Diffstat (limited to 'apt-pkg/depcache.h')
-rw-r--r--apt-pkg/depcache.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h
index 3decc7a5f..d4258438f 100644
--- a/apt-pkg/depcache.h
+++ b/apt-pkg/depcache.h
@@ -321,8 +321,9 @@ class pkgDepCache : protected pkgCache::Namespace
void Update(PkgIterator const &P);
// Count manipulators
- void AddSizes(const PkgIterator &Pkg,signed long Mult = 1);
- inline void RemoveSizes(const PkgIterator &Pkg) {AddSizes(Pkg,-1);};
+ void AddSizes(const PkgIterator &Pkg, bool const &Invert = false);
+ inline void RemoveSizes(const PkgIterator &Pkg) {AddSizes(Pkg, true);};
+ void AddSizes(const PkgIterator &Pkg,signed long Mult) __deprecated;
void AddStates(const PkgIterator &Pkg,int Add = 1);
inline void RemoveStates(const PkgIterator &Pkg) {AddStates(Pkg,-1);};