summaryrefslogtreecommitdiff
path: root/src/db/plugins/simple
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-01-31 19:52:08 -0800
committerRosen Penev <rosenp@gmail.com>2020-02-01 19:40:39 -0800
commit469cd9582fdb10578fc6aa6561e0acdbe32ddacd (patch)
treed505dea98046f45dad8eca8d500e2b9a90dd0dd9 /src/db/plugins/simple
parentbc6eca2115d8d333eed61d23a01958926bbd7a9c (diff)
[clang-tidy] use make_unique
Found with modernize-make-unique Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/db/plugins/simple')
-rw-r--r--src/db/plugins/simple/SimpleDatabasePlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
index c54480fd1..05fc688a1 100644
--- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx
+++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
@@ -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