summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:06 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:06 +0000
commit099a47599805a7050bc788a4a94f7f9bae929554 (patch)
tree1d3539a906061bd7dfdec1dadcfd71c50d1df96f /apt-pkg
parent4a6a69b5a5f9a7cf789086a98c27d35fae3a535d (diff)
Cache operator
Author: jgg Date: 1999-06-27 03:18:28 GMT Cache operator
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/cachefile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/cachefile.h b/apt-pkg/cachefile.h
index 4888b441c..e2414446e 100644
--- a/apt-pkg/cachefile.h
+++ b/apt-pkg/cachefile.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: cachefile.h,v 1.2 1999/06/12 03:43:48 jgg Exp $
+// $Id: cachefile.h,v 1.3 1999/06/27 03:18:28 jgg Exp $
/* ######################################################################
CacheFile - Simple wrapper class for opening, generating and whatnot
@@ -33,11 +33,12 @@ class pkgCacheFile
// We look pretty much exactly like a pointer to a dep cache
inline operator pkgDepCache &() {return *Cache;};
+ inline operator pkgDepCache *() {return Cache;};
inline pkgDepCache *operator ->() {return Cache;};
inline pkgDepCache &operator *() {return *Cache;};
inline pkgDepCache::StateCache &operator [](pkgCache::PkgIterator const &I) {return (*Cache)[I];};
inline unsigned char &operator [](pkgCache::DepIterator const &I) {return (*Cache)[I];};
-
+
// Release the dpkg status lock
inline void ReleaseLock() {Lock->Close();};