diff options
Diffstat (limited to 'src/dom/util/ziptool.cpp')
| -rw-r--r-- | src/dom/util/ziptool.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/dom/util/ziptool.cpp b/src/dom/util/ziptool.cpp index 657d26765..72b7e63b7 100644 --- a/src/dom/util/ziptool.cpp +++ b/src/dom/util/ziptool.cpp @@ -1997,7 +1997,6 @@ void ZipEntry::finish() compressionMethod);
}
}
- printf("### done\n");
}
@@ -2140,16 +2139,28 @@ void ZipFile::trace(char *fmt, ...) /**
*
*/
-bool ZipFile::addFile(const std::string &fileName,
+ZipEntry *ZipFile::addFile(const std::string &fileName,
const std::string &comment)
{
ZipEntry *ze = new ZipEntry();
if (!ze->readFile(fileName, comment))
{
- return false;
+ return NULL;
}
entries.push_back(ze);
- return true;
+ return ze;
+}
+
+
+/**
+ *
+ */
+ZipEntry *ZipFile::newEntry(const std::string &fileName,
+ const std::string &comment)
+{
+ ZipEntry *ze = new ZipEntry(fileName, comment);
+ entries.push_back(ze);
+ return ze;
}
|
