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
|
#ifdef ENABLE_ZLIB
|
||||||
if (gzip != nullptr) {
|
if (gzip != nullptr) {
|
||||||
gzip->Flush();
|
gzip->Finish();
|
||||||
gzip.reset();
|
gzip.reset();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user