Explorar o código

apt-pkg/acquire-item.h: add default argument to ExpectedHashes to avoid API break

Michael Vogt %!s(int64=12) %!d(string=hai) anos
pai
achega
880964da11
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      apt-pkg/acquire-item.h

+ 2 - 1
apt-pkg/acquire-item.h

@@ -289,7 +289,8 @@ class pkgAcquire::Item : public WeakPointable
     *  \param Owner The new owner of this item.
     *  \param Owner The new owner of this item.
     *  \param ExpectedHashes of the file represented by this item
     *  \param ExpectedHashes of the file represented by this item
     */
     */
-   Item(pkgAcquire *Owner, HashStringList const &ExpectedHashes);
+   Item(pkgAcquire *Owner,
+        HashStringList const &ExpectedHashes=HashStringList());
 
 
    /** \brief Remove this item from its owner's queue by invoking
    /** \brief Remove this item from its owner's queue by invoking
     *  pkgAcquire::Remove.
     *  pkgAcquire::Remove.