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 #ifdef ENABLE_ZLIB
if (gzip != nullptr) { if (gzip != nullptr) {
gzip->Flush(); gzip->Finish();
gzip.reset(); gzip.reset();
} }
#endif #endif

View File

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

View File

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

View File

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