fs/io/GzipOutputStream: use C++ exceptions in constructor
This commit is contained in:
@@ -386,10 +386,7 @@ SimpleDatabase::Save(Error &error)
|
||||
#ifdef ENABLE_ZLIB
|
||||
std::unique_ptr<GzipOutputStream> gzip;
|
||||
if (compress) {
|
||||
gzip.reset(new GzipOutputStream(*os, error));
|
||||
if (!gzip->IsDefined())
|
||||
return false;
|
||||
|
||||
gzip.reset(new GzipOutputStream(*os));
|
||||
os = gzip.get();
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user