summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-08-11 23:06:46 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-08-11 23:06:46 +0200
commit1842a17db2ecebaf7b19de574cb4cd87c687202c (patch)
treeef6040dde806b14bb382382944bf8be0b3cc4d7e
parent91c03d370d36b7a802b841394fb6afdccbd34893 (diff)
rename the parameter name of MarkDelete from Purge to MarkPurge to
fix a cosmetic warning from cppcheck: [apt-pkg/depcache.h:462] -> [apt-pkg/depcache.h:122]: (style) Variable 'Purge' hides enumerator with same name
-rw-r--r--apt-pkg/depcache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h
index 9efe110f5..760f0b589 100644
--- a/apt-pkg/depcache.h
+++ b/apt-pkg/depcache.h
@@ -390,7 +390,7 @@ class pkgDepCache : protected pkgCache::Namespace
// @{
void MarkKeep(PkgIterator const &Pkg, bool Soft = false,
bool FromUser = true, unsigned long Depth = 0);
- void MarkDelete(PkgIterator const &Pkg, bool Purge = false,
+ void MarkDelete(PkgIterator const &Pkg, bool MarkPurge = false,
unsigned long Depth = 0, bool FromUser = true);
void MarkInstall(PkgIterator const &Pkg,bool AutoInst = true,
unsigned long Depth = 0, bool FromUser = true,
@@ -459,7 +459,7 @@ class pkgDepCache : protected pkgCache::Namespace
* \param Depth recursive deep of this Marker call
* \param FromUser was the remove requested by the user?
*/
- virtual bool IsDeleteOk(const PkgIterator &Pkg,bool Purge = false,
+ virtual bool IsDeleteOk(const PkgIterator &Pkg,bool MarkPurge = false,
unsigned long Depth = 0, bool FromUser = true);
// read persistent states