Browse Source

more indentation fixes

Aleksandar Fabijanic 13 năm trước cách đây
mục cha
commit
fe5c4098e5

+ 1 - 1
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);

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

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

+ 1 - 1
Zip/testsuite/src/CompressTest.h

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