lib/zlib/GzipOutputStream: rename Flush() to Finish()
This commit is contained in:
parent
5b3abe2c9c
commit
171b31ae67
|
@ -380,7 +380,7 @@ SimpleDatabase::Save()
|
|||
|
||||
#ifdef ENABLE_ZLIB
|
||||
if (gzip != nullptr) {
|
||||
gzip->Flush();
|
||||
gzip->Finish();
|
||||
gzip.reset();
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -55,7 +55,7 @@ GzipOutputStream::~GzipOutputStream()
|
|||
}
|
||||
|
||||
void
|
||||
GzipOutputStream::Flush()
|
||||
GzipOutputStream::Finish()
|
||||
{
|
||||
/* no more input */
|
||||
z.next_in = nullptr;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -48,7 +48,7 @@ CopyGzip(OutputStream &_dest, int src)
|
|||
{
|
||||
GzipOutputStream dest(_dest);
|
||||
Copy(dest, src);
|
||||
dest.Flush();
|
||||
dest.Finish();
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue