summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:57:58 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:57:58 +0000
commit4d6f8bdf85ceb8be2f6baae89aaaaa5135c38c47 (patch)
treed623958db7ee2ddc12c43c632bcd132b1a472873 /apt-pkg
parent851a45a85fa486abc642e10f19afef11f621c29d (diff)
G++3 fixes from Randolph
Author: jgg Date: 2001-05-15 05:46:11 GMT G++3 fixes from Randolph
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/sourcelist.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc
index 51289a43d..98acc6eb2 100644
--- a/apt-pkg/sourcelist.cc
+++ b/apt-pkg/sourcelist.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: sourcelist.cc,v 1.19 2001/03/13 06:51:46 jgg Exp $
+// $Id: sourcelist.cc,v 1.20 2001/05/15 05:46:11 jgg Exp $
/* ######################################################################
List of Sources
@@ -23,7 +23,9 @@
#include <fstream.h>
/*}}}*/
-// Global list of Item supported
+using namespace std;
+
+// Global list of Items supported
static pkgSourceList::Type *ItmList[10];
pkgSourceList::Type **pkgSourceList::Type::GlobalList = ItmList;
unsigned long pkgSourceList::Type::GlobalListLen = 0;
@@ -186,7 +188,7 @@ bool pkgSourceList::ReadMainList()
bool pkgSourceList::Read(string File)
{
// Open the stream for reading
- ifstream F(File.c_str(),ios::in | ios::nocreate);
+ ifstream F(File.c_str(),ios::in /*| ios::nocreate*/);
if (!F != 0)
return _error->Errno("ifstream::ifstream",_("Opening %s"),File.c_str());