mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
more indentation fixes
This commit is contained in:
parent
6f863fee09
commit
fe5c4098e5
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ public:
|
||||
void testManipulator();
|
||||
void testManipulatorDel();
|
||||
void testManipulatorReplace();
|
||||
void testSetZipComment();
|
||||
void testSetZipComment();
|
||||
|
||||
void setUp();
|
||||
void tearDown();
|
||||
|
Loading…
Reference in New Issue
Block a user