Bladeren bron

G++3 fixes from Randolph
Author: jgg
Date: 2001-05-07 04:24:08 GMT
G++3 fixes from Randolph

Arch Librarian 22 jaren geleden
bovenliggende
commit
0a84390105
7 gewijzigde bestanden met toevoegingen van 24 en 8 verwijderingen
  1. 3 1
      apt-pkg/indexfile.h
  2. 3 1
      apt-pkg/packagemanager.h
  3. 3 1
      apt-pkg/pkgcache.h
  4. 3 1
      apt-pkg/policy.h
  5. 4 1
      apt-pkg/sourcelist.h
  6. 4 1
      apt-pkg/srcrecords.h
  7. 4 2
      apt-pkg/versionmatch.h

+ 3 - 1
apt-pkg/indexfile.h

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: indexfile.h,v 1.4 2001/04/29 05:13:51 jgg Exp $
+// $Id: indexfile.h,v 1.5 2001/05/07 04:24:08 jgg Exp $
 /* ######################################################################
 
    Index File - Abstraction for an index of archive/source file.
@@ -30,6 +30,8 @@
 #include <apt-pkg/srcrecords.h>
 #include <apt-pkg/pkgrecords.h>
     
+using std::string;
+
 class pkgAcquire;
 class pkgCacheGenerator;
 class OpProgress;

+ 3 - 1
apt-pkg/packagemanager.h

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: packagemanager.h,v 1.13 2001/04/06 05:31:01 jgg Exp $
+// $Id: packagemanager.h,v 1.14 2001/05/07 04:24:08 jgg Exp $
 /* ######################################################################
 
    Package Manager - Abstacts the package manager
@@ -30,6 +30,8 @@
 #include <string>
 #include <apt-pkg/pkgcache.h>
 
+using std::string;
+
 class pkgAcquire;
 class pkgDepCache;
 class pkgSourceList;

+ 3 - 1
apt-pkg/pkgcache.h

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: pkgcache.h,v 1.23 2001/02/20 07:03:17 jgg Exp $
+// $Id: pkgcache.h,v 1.24 2001/05/07 04:24:08 jgg Exp $
 /* ######################################################################
    
    Cache - Structure definitions for the cache file
@@ -26,6 +26,8 @@
 #include <string>
 #include <time.h>
 #include <apt-pkg/mmap.h>
+
+using std::string;
     
 class pkgVersioningSystem;
 class pkgCache

+ 3 - 1
apt-pkg/policy.h

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: policy.h,v 1.3 2001/04/29 05:13:51 jgg Exp $
+// $Id: policy.h,v 1.4 2001/05/07 04:24:08 jgg Exp $
 /* ######################################################################
 
    Package Version Policy implementation
@@ -41,6 +41,8 @@
 #include <apt-pkg/versionmatch.h>
 #include <vector>
 
+using std::vector;
+
 class pkgPolicy : public pkgDepCache::Policy
 {
    struct Pin

+ 4 - 1
apt-pkg/sourcelist.h

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: sourcelist.h,v 1.10 2001/03/13 06:51:46 jgg Exp $
+// $Id: sourcelist.h,v 1.11 2001/05/07 04:24:08 jgg Exp $
 /* ######################################################################
 
    SourceList - Manage a list of sources
@@ -31,6 +31,9 @@
 #include <vector>
 #include <apt-pkg/pkgcache.h>
 #include <apt-pkg/indexfile.h>
+
+using std::string;
+using std::vector;
     
 #ifdef __GNUG__
 #pragma interface "apt-pkg/sourcelist.h"

+ 4 - 1
apt-pkg/srcrecords.h

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: srcrecords.h,v 1.6 2001/02/20 07:03:17 jgg Exp $
+// $Id: srcrecords.h,v 1.7 2001/05/07 04:24:08 jgg Exp $
 /* ######################################################################
    
    Source Package Records - Allows access to source package records
@@ -20,6 +20,9 @@
 #include <string>
 #include <vector>    
 
+using std::string;
+using std::vector;
+
 class pkgSourceList;
 class pkgIndexFile;
 class pkgSrcRecords

+ 4 - 2
apt-pkg/versionmatch.h

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: versionmatch.h,v 1.2 2001/02/20 07:03:17 jgg Exp $
+// $Id: versionmatch.h,v 1.3 2001/05/07 04:24:08 jgg Exp $
 /* ######################################################################
 
    Version Matching 
@@ -38,8 +38,10 @@
 #include <string>
 #include <apt-pkg/pkgcache.h>
 
+using std::string;
+
 class pkgVersionMatch
-{
+{   
    // Version Matching
    string VerStr;
    bool VerPrefixMatch;