diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-04-21 09:56:09 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-04-21 09:56:09 +0000 |
| commit | 8d793593fff1737c91b76f820e1b4aa021897cee (patch) | |
| tree | 7e23a82675cbb16050942625337c35836a17f59a /src/dom/util/ziptool.cpp | |
| parent | Fix symbols not being installed bug reported by suv (diff) | |
| download | inkscape-8d793593fff1737c91b76f820e1b4aa021897cee.tar.gz inkscape-8d793593fff1737c91b76f820e1b4aa021897cee.zip | |
cppcheck
(bzr r12293)
Diffstat (limited to 'src/dom/util/ziptool.cpp')
| -rw-r--r-- | src/dom/util/ziptool.cpp | 26 |
1 files changed, 16 insertions, 10 deletions
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; } /** |
