summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:00 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:00 +0000
commitb4fc9b6f648694ecb0d161cb14859da88b36881c (patch)
treeb1a8faba86499a3de10062e890fe5f6dbf5aa389 /apt-pkg/acquire.h
parent076cc664137ec4b8983a1d9fe69eaaec6a9d4788 (diff)
G++3 fixes from Randolph
Author: jgg Date: 2001-05-22 04:17:18 GMT G++3 fixes from Randolph
Diffstat (limited to 'apt-pkg/acquire.h')
-rw-r--r--apt-pkg/acquire.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/apt-pkg/acquire.h b/apt-pkg/acquire.h
index d5b759cb3..1881e80d5 100644
--- a/apt-pkg/acquire.h
+++ b/apt-pkg/acquire.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire.h,v 1.28 2001/02/20 07:03:17 jgg Exp $
+// $Id: acquire.h,v 1.29 2001/05/22 04:17:18 jgg Exp $
/* ######################################################################
Acquire - File Acquiration
@@ -35,6 +35,9 @@
#include <vector>
#include <string>
+using std::vector;
+using std::string;
+
#ifdef __GNUG__
#pragma interface "apt-pkg/acquire.h"
#endif
@@ -54,6 +57,9 @@ class pkgAcquire
struct ItemDesc;
friend class Item;
friend class Queue;
+
+ typedef vector<Item *>::iterator ItemIterator;
+ typedef vector<Item *>::const_iterator ItemCIterator;
protected:
@@ -100,8 +106,8 @@ class pkgAcquire
// Simple iteration mechanism
inline Worker *WorkersBegin() {return Workers;};
Worker *WorkerStep(Worker *I);
- inline Item **ItemsBegin() {return Items.begin();};
- inline Item **ItemsEnd() {return Items.end();};
+ inline ItemIterator ItemsBegin() {return Items.begin();};
+ inline ItemIterator ItemsEnd() {return Items.end();};
// Iterate over queued Item URIs
class UriIterator;