plugin/zip: Minor improvements (thank you wimpie)

git-svn-id: svn://ultimatepp.org/upp/trunk@15255 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-10-15 13:38:03 +00:00
parent 33ff83e72a
commit 0e03f5ca44
2 changed files with 6 additions and 1 deletions

View file

@ -6,6 +6,7 @@ void UnZip::ReadDir()
{
error = true;
file.Clear();
current = 0;
int entries = -1;

View file

@ -58,6 +58,7 @@ public:
dword GetPos() const;
void Create(Stream& in);
void Close() { file.Clear(); zip->Close(); }
UnZip(Stream& in);
UnZip();
@ -71,6 +72,7 @@ public:
bool Create(const char *name);
FileUnZip(const char *name) { Create(name); }
FileUnZip() {}
};
class MemUnZip : public UnZip {
@ -79,7 +81,8 @@ class MemUnZip : public UnZip {
public:
void Create(const void *ptr, int count);
MemUnZip(const void *ptr, int count) { Create(ptr, count); }
MemUnZip(const void *ptr, int count) { Create(ptr, count); }
MemUnZip();
};
class StringUnZip : public UnZip {
@ -89,6 +92,7 @@ public:
void Create(const String& s);
StringUnZip(const String& s) { Create(s); }
StringUnZip();
};
class Zip {