]> git.saurik.com Git - apt.git/commitdiff
G++3 fixes from Randolph
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:14 +0000 (16:58 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:58:14 +0000 (16:58 +0000)
Author: jgg
Date: 2001-05-29 03:48:27 GMT
G++3 fixes from Randolph

ftparchive/apt-ftparchive.h
ftparchive/cachedb.cc
ftparchive/multicompress.cc
ftparchive/override.h

index c228903ba196f8265e5e84897da7f16240940e15..c364d670e71ed12ff71babf15c3f24e3cc5df134 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-ftparchive.h,v 1.2 2001/02/20 07:03:18 jgg Exp $
+// $Id: apt-ftparchive.h,v 1.3 2001/05/29 03:51:37 jgg Exp $
 /* ######################################################################
 
    Writer 
@@ -19,6 +19,9 @@
 
 #include <fstream>
 
+using std::ostream;
+using std::ofstream;
+
 extern ostream c0out;
 extern ostream c1out;
 extern ostream c2out;
index dd63f215a4d92d1cd418e085b4d8b5100d95fbf8..cbcdfedc6054b871bdee4d0fbb6c83389fd9aea5 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: cachedb.cc,v 1.2 2001/02/20 07:03:18 jgg Exp $
+// $Id: cachedb.cc,v 1.3 2001/05/29 03:50:33 jgg Exp $
 /* ######################################################################
 
    CacheDB
@@ -213,7 +213,7 @@ bool CacheDB::GetMD5(string &MD5Res,bool GenOnly)
    
    MD5Res = MD5.Result();
    InitQuery("m5");
-   if (Put(MD5Res.begin(),MD5Res.length()) == true)
+   if (Put(MD5Res.c_str(),MD5Res.length()) == true)
       CurStat.Flags |= FlMD5;
    return true;
 }
index 932ad6758f80d6c74ee5a72572ea9ad2caafa669..56a1a41a248eb3c6a10da6995c35b968cd5d218c 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: multicompress.cc,v 1.2 2001/02/20 07:03:18 jgg Exp $
+// $Id: multicompress.cc,v 1.3 2001/05/29 03:48:27 jgg Exp $
 /* ######################################################################
 
    MultiCompressor
 #include <sys/stat.h>
 #include <utime.h>
 #include <unistd.h>
+#include <iostream>    
                                                                        /*}}}*/
 
+using namespace std;
+
 const MultiCompress::CompType MultiCompress::Compressors[] =
       {{".","",0,0,0,1},
        {"gzip",".gz","gzip","-9n","-d",2},
index 63f123c420c51641d0b2cb057591520d3f627f14..5917b9c92559c70e424b217b32ac826ef8acbd43 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: override.h,v 1.2 2001/02/20 07:03:18 jgg Exp $
+// $Id: override.h,v 1.3 2001/05/29 03:49:53 jgg Exp $
 /* ######################################################################
 
    Override
@@ -18,6 +18,9 @@
 
 #include <map>
 #include <string>
+
+using std::string;
+using std::map;
     
 class Override
 {