summaryrefslogtreecommitdiff
path: root/apt-pkg/tagfile.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-01-28 20:55:45 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-01-28 20:55:45 +0100
commit43fb90dcd5d3f8887c1903073ad21a53847974ba (patch)
treed3cb985c3d9ba13392b7e58bef39377511878cc0 /apt-pkg/tagfile.h
parent4b2746d5ff7d6c5ed3b23a44a67fc323475cfd7d (diff)
apt-pkg/tagfile.h: add dpointer placeholder, make destructor virtual; apt-pkg/deb/debsystem.h: make destructor virtual
Diffstat (limited to 'apt-pkg/tagfile.h')
-rw-r--r--apt-pkg/tagfile.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/apt-pkg/tagfile.h b/apt-pkg/tagfile.h
index 68f1642d9..f361a787f 100644
--- a/apt-pkg/tagfile.h
+++ b/apt-pkg/tagfile.h
@@ -31,11 +31,8 @@ class pkgTagSection
unsigned int Indexes[256];
unsigned int AlphaIndexes[0x100];
unsigned int TagCount;
- // for later
- int *reserved1;
- int *reserved2;
- int *reserved3;
- int *reserved4;
+ // dpointer placeholder (for later in case we need it)
+ void *d;
/* This very simple hash function for the last 8 letters gives
very good performance on the debian package files */
@@ -80,6 +77,7 @@ class pkgTagSection
};
pkgTagSection() : Section(0), Stop(0) {};
+ virtual ~pkgTagSection() {};
};
class pkgTagFilePrivate;
@@ -97,7 +95,7 @@ class pkgTagFile
bool Jump(pkgTagSection &Tag,unsigned long Offset);
pkgTagFile(FileFd *F,unsigned long Size = 32*1024);
- ~pkgTagFile();
+ virtual ~pkgTagFile();
};
/* This is the list of things to rewrite. The rewriter