diff options
author | Max Kellermann <max@duempel.org> | 2015-12-16 10:14:56 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-12-16 10:14:56 +0100 |
commit | 36d6ead65cf507948744ee5d8615c8ef20e42f9d (patch) | |
tree | df3a1df9600f7b76666c91521880f69d5f7db386 /src/db | |
parent | 7eae3bc8c530069e86026bf9d259e9a5ce9e4bce (diff) |
fs/io/GzipOutputStream: use C++ exceptions in constructor
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index 97e2e6c2b..aa62870c6 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -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 |