55//
66// Library: Zip
77// Package: Zip
8- // Module: Compress
8+ // Module: Compress
99//
1010// Definition of the Compress class.
1111//
1212// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
1313// and Contributors.
1414//
15- // SPDX-License-Identifier: BSL-1.0
15+ // SPDX-License-Identifier: BSL-1.0
1616//
1717
1818
@@ -42,7 +42,7 @@ class Zip_API Compress
4242 // / seekableOut determines how we write the zip, setting it to true is recommended for local files (smaller zip file),
4343 // / if you are compressing directly to a network, you MUST set it to false
4444 // / If forceZip64 is set true then the file header is allocated with zip64 extension so that it can be updated after the file data is written
45- // / if seekableOut is true in case the compressed or uncompressed size exceeds 32 bits.
45+ // / if seekableOut is true in case the compressed or uncompressed size exceeds 32 bits.
4646
4747 ~Compress ();
4848
@@ -80,10 +80,10 @@ class Zip_API Compress
8080 // / leads to worse results. Extensions will be converted to lower case.
8181 // /
8282 // / The default extensions are:
83- // / - gif
84- // / - jpg
85- // / - jpeg
86- // / - png
83+ // / - gif
84+ // / - jpg
85+ // / - jpeg
86+ // / - png
8787
8888 const std::set<std::string>& getStoreExtensions () const ;
8989 // / Returns the file extensions for which the CM_STORE compression method
@@ -108,16 +108,16 @@ class Zip_API Compress
108108 // / copys an already compressed ZipEntry from in
109109
110110private:
111- std::set<std::string> _storeExtensions;
112- std::ostream& _out;
113- bool _seekableOut;
114- bool _forceZip64;
115- ZipArchive::FileHeaders _files;
116- ZipArchive::FileInfos _infos;
117- ZipArchive::DirectoryInfos _dirs;
111+ std::set<std::string> _storeExtensions;
112+ std::ostream& _out;
113+ bool _seekableOut;
114+ bool _forceZip64;
115+ ZipArchive::FileHeaders _files;
116+ ZipArchive::FileInfos _infos;
117+ ZipArchive::DirectoryInfos _dirs;
118118 ZipArchive::DirectoryInfos64 _dirs64;
119- Poco::UInt64 _offset;
120- std::string _comment;
119+ Poco::UInt64 _offset;
120+ std::string _comment;
121121
122122 friend class Keep ;
123123 friend class Rename ;
@@ -127,6 +127,8 @@ class Zip_API Compress
127127//
128128// inlines
129129//
130+
131+
130132inline void Compress::setZipComment (const std::string& comment)
131133{
132134 _comment = comment;
0 commit comments