lib/zlib/GzipOutputStream: rename Flush() to Finish()

This commit is contained in:
Max Kellermann 2022-07-04 10:04:23 +02:00
parent 5b3abe2c9c
commit 171b31ae67
4 changed files with 4 additions and 4 deletions

View File

@ -380,7 +380,7 @@ SimpleDatabase::Save()
#ifdef ENABLE_ZLIB
if (gzip != nullptr) {
gzip->Flush();
gzip->Finish();
gzip.reset();
}
#endif

View File

@ -55,7 +55,7 @@ GzipOutputStream::~GzipOutputStream()
}
void
GzipOutputStream::Flush()
GzipOutputStream::Finish()
{
/* no more input */
z.next_in = nullptr;

View File

@ -56,7 +56,7 @@ public:
* Finish the file and write all data remaining in zlib's
* output buffer.
*/
void Flush();
void Finish();
/* virtual methods from class OutputStream */
void Write(const void *data, size_t size) override;

View File

@ -48,7 +48,7 @@ CopyGzip(OutputStream &_dest, int src)
{
GzipOutputStream dest(_dest);
Copy(dest, src);
dest.Flush();
dest.Finish();
}
static void