Просмотр исходного кода

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

Michael Vogt лет назад: 12
Родитель
Сommit
880964da11
1 измененных файлов с 2 добавлено и 1 удалено
  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 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
     *  pkgAcquire::Remove.