more indentation fixes

This commit is contained in:
Aleksandar Fabijanic 2013-04-21 14:10:04 -05:00
parent 6f863fee09
commit fe5c4098e5
4 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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();
}

View File

@ -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<Poco::UInt16>(comment.size()), _rawInfo, ZIPCOMMENT_LENGTH_POS);
// Now change our internal comment
// Now change our internal comment
_comment = comment;
}

View File

@ -51,7 +51,7 @@ public:
void testManipulator();
void testManipulatorDel();
void testManipulatorReplace();
void testSetZipComment();
void testSetZipComment();
void setUp();
void tearDown();