]> git.saurik.com Git - apt.git/commitdiff
Make QItem a subclass of DescItem
authorJulian Andres Klode <jak@debian.org>
Tue, 11 Aug 2015 10:02:39 +0000 (12:02 +0200)
committerJulian Andres Klode <jak@debian.org>
Tue, 11 Aug 2015 11:59:15 +0000 (13:59 +0200)
CurrentItem previously was a DescItem, so let's make QItem a
DescItem to not break things.

apt-pkg/acquire.h

index aa581dfb877799f2bd8227dd2eae26a1b43ff401..0d2b21233b1bd7584186743f4dede8cde9b02f4d 100644 (file)
@@ -419,23 +419,15 @@ class pkgAcquire::Queue
    protected:
 
    /** \brief A single item placed in this queue. */
    protected:
 
    /** \brief A single item placed in this queue. */
-   struct QItem : public WeakPointable
+   struct QItem : public ItemDesc
    {
       /** \brief The next item in the queue. */
       QItem *Next;
       /** \brief The worker associated with this item, if any. */
       pkgAcquire::Worker *Worker;
 
    {
       /** \brief The next item in the queue. */
       QItem *Next;
       /** \brief The worker associated with this item, if any. */
       pkgAcquire::Worker *Worker;
 
-      /** \brief The URI from which to download this item. */
-      std::string URI;
-      /** \brief A description of this item. */
-      std::string Description;
-      /** \brief A shorter description of this item. */
-      std::string ShortDesc;
       /** \brief The underlying items interested in the download */
       std::vector<Item*> Owners;
       /** \brief The underlying items interested in the download */
       std::vector<Item*> Owners;
-      // both, backward compatibility and easy access as syncing is interal
-      Item * Owner;
 
       typedef std::vector<Item*>::const_iterator owner_iterator;
 
 
       typedef std::vector<Item*>::const_iterator owner_iterator;