projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merged r1970 lp:~vorlon/apt/lp.968828
[apt.git]
/
apt-pkg
/
pkgrecords.cc
diff --git
a/apt-pkg/pkgrecords.cc
b/apt-pkg/pkgrecords.cc
index a5dab22ffd57f5bce52158f5562ffc528caefc83..36dab3480d684cc87fef656ad46b15bd83bd04b4 100644
(file)
--- a/
apt-pkg/pkgrecords.cc
+++ b/
apt-pkg/pkgrecords.cc
@@
-9,22
+9,24
@@
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
##################################################################### */
/*}}}*/
// Include Files /*{{{*/
+#include<config.h>
+
#include <apt-pkg/pkgrecords.h>
#include <apt-pkg/indexfile.h>
#include <apt-pkg/error.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/pkgrecords.h>
#include <apt-pkg/indexfile.h>
#include <apt-pkg/error.h>
#include <apt-pkg/configuration.h>
-
-#include <apti18n.h>
+
+#include <apti18n.h>
/*}}}*/
// Records::pkgRecords - Constructor /*{{{*/
// ---------------------------------------------------------------------
/* This will create the necessary structures to access the status files */
/*}}}*/
// Records::pkgRecords - Constructor /*{{{*/
// ---------------------------------------------------------------------
/* This will create the necessary structures to access the status files */
-pkgRecords::pkgRecords(pkgCache &Cache) :
Cache(Cache),
+pkgRecords::pkgRecords(pkgCache &Cache) :
d(NULL), Cache(Cache),
Files(Cache.HeaderP->PackageFileCount)
{
Files(Cache.HeaderP->PackageFileCount)
{
- for (pkgCache::PkgFileIterator I = Cache.FileBegin();
-
I.end() == false; I++
)
+ for (pkgCache::PkgFileIterator I = Cache.FileBegin();
+
I.end() == false; ++I
)
{
const pkgIndexFile::Type *Type = pkgIndexFile::Type::GetType(I.IndexType());
if (Type == 0)
{
const pkgIndexFile::Type *Type = pkgIndexFile::Type::GetType(I.IndexType());
if (Type == 0)
@@
-44,7
+46,7
@@
pkgRecords::pkgRecords(pkgCache &Cache) : Cache(Cache),
/* */
pkgRecords::~pkgRecords()
{
/* */
pkgRecords::~pkgRecords()
{
- for ( vector<Parser*>::iterator it = Files.begin();
+ for (
std::
vector<Parser*>::iterator it = Files.begin();
it != Files.end();
++it)
{
it != Files.end();
++it)
{