From 7d70f7993e2e6e465ac216bc21ec15ed7b7d9ff5 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 23 Oct 2015 17:28:27 +0200 Subject: orderlist: Replace qsort() by thread-safe std::sort() Gbp-Dch: ignore --- apt-pkg/orderlist.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apt-pkg/orderlist.h') diff --git a/apt-pkg/orderlist.h b/apt-pkg/orderlist.h index 7b35b2955..80876e3f9 100644 --- a/apt-pkg/orderlist.h +++ b/apt-pkg/orderlist.h @@ -69,9 +69,8 @@ class pkgOrderList : protected pkgCache::Namespace bool DoRun(); // For pre sorting - static pkgOrderList *Me; - static int OrderCompareA(const void *a, const void *b) APT_PURE; - static int OrderCompareB(const void *a, const void *b) APT_PURE; + int OrderCompareA(Package *a, Package *b) APT_PURE; + int OrderCompareB(Package *a, Package *b) APT_PURE; int FileCmp(PkgIterator A,PkgIterator B) APT_PURE; public: -- cgit v1.2.3