[clang-tidy] use make_unique

Found with modernize-make-unique

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-01-31 19:52:08 -08:00
parent bc6eca2115
commit 469cd9582f
3 changed files with 6 additions and 6 deletions

View File

@@ -365,7 +365,7 @@ SimpleDatabase::Save()
#ifdef ENABLE_ZLIB
std::unique_ptr<GzipOutputStream> gzip;
if (compress) {
gzip.reset(new GzipOutputStream(*os));
gzip = std::make_unique<GzipOutputStream>(*os);
os = gzip.get();
}
#endif