From 8d793593fff1737c91b76f820e1b4aa021897cee Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sun, 21 Apr 2013 11:56:09 +0200 Subject: cppcheck (bzr r12293) --- src/dom/util/ziptool.cpp | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'src/dom/util/ziptool.cpp') diff --git a/src/dom/util/ziptool.cpp b/src/dom/util/ziptool.cpp index 9d9d5685c..cf024008f 100644 --- a/src/dom/util/ziptool.cpp +++ b/src/dom/util/ziptool.cpp @@ -1895,24 +1895,30 @@ bool GzipFile::readFile(const std::string &fileName) /** * Constructor */ -ZipEntry::ZipEntry() +ZipEntry::ZipEntry() : + crc (0L), + fileName (), + comment (), + compressionMethod (8), + compressedData (), + uncompressedData (), + position (0) { - crc = 0L; - compressionMethod = 8; - position = 0; } /** * */ ZipEntry::ZipEntry(const std::string &fileNameArg, - const std::string &commentArg) + const std::string &commentArg) : + crc (0L), + fileName (fileNameArg), + comment (commentArg), + compressionMethod (8), + compressedData (), + uncompressedData (), + position (0) { - crc = 0L; - compressionMethod = 8; - fileName = fileNameArg; - comment = commentArg; - position = 0; } /** -- cgit v1.2.3