From d71570608f36cfa3d812687cb53e82bdb818caa4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 Feb 2017 02:25:56 +0300 Subject: Fix code style. --- src/fs/zip.cpp | 12 +++++++----- src/fs/ziplocalheader.h | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src/fs') diff --git a/src/fs/zip.cpp b/src/fs/zip.cpp index 2164a4303..57aa9fc76 100644 --- a/src/fs/zip.cpp +++ b/src/fs/zip.cpp @@ -80,7 +80,7 @@ namespace Zip fseek(arcFile, 14, SEEK_CUR); // + 14 // file header pointer on 18 readVal(&header->compressSize, 4, - "zip compressed size") // + 4 + "zip compressed size") // + 4 // file header pointer on 22 // +++ need add endian specific decoding for val32 readVal(&header->uncompressSize, 4, @@ -115,8 +115,10 @@ namespace Zip headers.push_back(header); logger->log(" file name: %s", header->fileName.c_str()); - logger->log(" compressed size: %u", header->compressSize); - logger->log(" uncompressed size: %u", header->uncompressSize); + logger->log(" compressed size: %u", + header->compressSize); + logger->log(" uncompressed size: %u", + header->uncompressSize); } } else if (buf[0] == 0x50 && @@ -126,7 +128,7 @@ namespace Zip { // central directory file header // !!! This is quick way for read zip archives. !!! // !!! It ignore modified files in archive. !!! - // ignoring central directory entries because all data already read. + // ignoring central directory entries break; } else if (buf[0] == 0x50 && @@ -136,7 +138,7 @@ namespace Zip { // end of central directory // !!! This is quick way for read zip archives. !!! // !!! It ignore modified files in archive. !!! - // ignoring central directory entries because all data already read. + // ignoring end of central directory break; } else diff --git a/src/fs/ziplocalheader.h b/src/fs/ziplocalheader.h index 1b00c3b54..68bebaa06 100644 --- a/src/fs/ziplocalheader.h +++ b/src/fs/ziplocalheader.h @@ -25,7 +25,7 @@ #include -struct ZipLocalHeader +struct ZipLocalHeader final { ZipLocalHeader() : archiveName(), -- cgit v1.2.3-70-g09d2