From fe5c4098e5f2913c0e91eda04170ee7299c354bd Mon Sep 17 00:00:00 2001 From: Aleksandar Fabijanic Date: Sun, 21 Apr 2013 14:10:04 -0500 Subject: [PATCH] more indentation fixes --- Zip/include/Poco/Zip/ZipArchive.h | 2 +- Zip/src/ZipArchive.cpp | 6 +++--- Zip/src/ZipArchiveInfo.cpp | 4 ++-- Zip/testsuite/src/CompressTest.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Zip/include/Poco/Zip/ZipArchive.h b/Zip/include/Poco/Zip/ZipArchive.h index d2a5a4565..7a134c6da 100644 --- a/Zip/include/Poco/Zip/ZipArchive.h +++ b/Zip/include/Poco/Zip/ZipArchive.h @@ -83,7 +83,7 @@ public: FileHeaders::const_iterator headerEnd() const; - const std::string& getZipComment() const; + const std::string& getZipComment() const; private: void parse(std::istream& in, ParseCallback& pc); diff --git a/Zip/src/ZipArchive.cpp b/Zip/src/ZipArchive.cpp index 4338e8942..0dda2d17e 100644 --- a/Zip/src/ZipArchive.cpp +++ b/Zip/src/ZipArchive.cpp @@ -120,9 +120,9 @@ void ZipArchive::parse(std::istream& in, ParseCallback& pc) const std::string& ZipArchive::getZipComment() const { - // It seems that only the "first" disk is populated (look at Compress::close()), so getting the first ZipArchiveInfo - DirectoryInfos::const_iterator it = _disks.begin(); - return it->second.getZipComment(); + // It seems that only the "first" disk is populated (look at Compress::close()), so getting the first ZipArchiveInfo + DirectoryInfos::const_iterator it = _disks.begin(); + return it->second.getZipComment(); } diff --git a/Zip/src/ZipArchiveInfo.cpp b/Zip/src/ZipArchiveInfo.cpp index 9811ec59e..73f851f18 100644 --- a/Zip/src/ZipArchiveInfo.cpp +++ b/Zip/src/ZipArchiveInfo.cpp @@ -105,7 +105,7 @@ std::string ZipArchiveInfo::createHeader() const void ZipArchiveInfo::setZipComment(const std::string& comment) -{ +{ // Confirm string is of valid size if (comment.size() > 65535) throw ZipException("Maximum number of entries for a ZIP file reached: 65535"); @@ -113,7 +113,7 @@ void ZipArchiveInfo::setZipComment(const std::string& comment) // Change the value of the ZIP Comment Size to reflect new comment size ZipUtil::set16BitValue(static_cast(comment.size()), _rawInfo, ZIPCOMMENT_LENGTH_POS); - // Now change our internal comment + // Now change our internal comment _comment = comment; } diff --git a/Zip/testsuite/src/CompressTest.h b/Zip/testsuite/src/CompressTest.h index 98bcf361e..b170c6988 100644 --- a/Zip/testsuite/src/CompressTest.h +++ b/Zip/testsuite/src/CompressTest.h @@ -51,7 +51,7 @@ public: void testManipulator(); void testManipulatorDel(); void testManipulatorReplace(); - void testSetZipComment(); + void testSetZipComment(); void setUp(); void tearDown();