]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/packagemanager.h
headers are for declarations only
[apt.git] / apt-pkg / packagemanager.h
index 60414ae1cb2c2ab0f5395bf1c66bf0dd24513a10..febab26dd6106731210906d8da4526e915508b24 100644 (file)
@@ -141,11 +141,11 @@ class pkgPackageManager : protected pkgCache::Namespace
    /** \brief returns all packages dpkg let disappear */
    inline std::set<std::string> GetDisappearedPackages() { return disappearedPkgs; };
 
-   pkgPackageManager(pkgDepCache *Cache);
+   explicit pkgPackageManager(pkgDepCache *Cache);
    virtual ~pkgPackageManager();
 
    private:
-   void *d;
+   void * const d;
    enum APT_HIDDEN SmartAction { UNPACK_IMMEDIATE, UNPACK, CONFIGURE };
    APT_HIDDEN bool NonLoopingSmart(SmartAction const action, pkgCache::PkgIterator &Pkg,
       pkgCache::PkgIterator DepPkg, int const Depth, bool const PkgLoop,