projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set the correct item FileSize in by-hash case
[apt.git]
/
ftparchive
/
sources.h
diff --git
a/ftparchive/sources.h
b/ftparchive/sources.h
index 91e0b137631479ef486ea8a1621c9f21945efdfc..a125ec6a490dbfcb0b73b34bd01aaee35f24ed32 100644
(file)
--- a/
ftparchive/sources.h
+++ b/
ftparchive/sources.h
@@
-3,29
+3,21
@@
#include <apt-pkg/tagfile.h>
#include <apt-pkg/tagfile.h>
-class DscExtract
+#include <string>
+
+class DscExtract
{
public:
{
public:
- //FIXME: do we really need to enforce a maximum size of the dsc file?
- static const int maxSize = 128*1024;
-
- char *Data;
+ std::string Data;
pkgTagSection Section;
pkgTagSection Section;
- unsigned long Length;
+ unsigned long
long
Length;
bool IsClearSigned;
bool IsClearSigned;
- bool TakeDsc(const void *Data, unsigned long Size);
+ bool TakeDsc(const void *Data, unsigned long
long
Size);
bool Read(std::string FileName);
bool Read(std::string FileName);
-
- DscExtract() : Data(0), Length(0) {
- Data = new char[maxSize];
- };
- ~DscExtract() {
- if(Data != NULL) {
- delete [] Data;
- Data = NULL;
- }
- };
+
+ DscExtract() : Length(0), IsClearSigned(false) {};
+ ~DscExtract() {};
};
};