diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-09-15 16:43:46 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-09-15 16:43:46 +0900 |
| commit | b63c1dce08e15ef7a533c309ac607fa2d11a96f6 (patch) | |
| tree | 27394aacda7245995acf70ad149882eced63add7 /src | |
| parent | 306d92a1dac8a712a6279c19186dfc0ec189eb44 (diff) | |
SessionSerializer: Use std::unique_ptr instead of std::shared_ptr
Diffstat (limited to 'src')
| -rw-r--r-- | src/SessionSerializer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SessionSerializer.cc b/src/SessionSerializer.cc index 775f6f70..8fda9c68 100644 --- a/src/SessionSerializer.cc +++ b/src/SessionSerializer.cc @@ -74,15 +74,15 @@ bool SessionSerializer::save(const std::string& filename) const std::string tempFilename = filename; tempFilename += "__temp"; { - std::shared_ptr<IOFile> fp; + std::unique_ptr<IOFile> fp; #if HAVE_ZLIB if (util::endsWith(filename, ".gz")) { - fp = std::make_shared<GZipFile>(tempFilename.c_str(), IOFile::WRITE); + fp = make_unique<GZipFile>(tempFilename.c_str(), IOFile::WRITE); } else #endif { - fp = std::make_shared<BufferedFile>(tempFilename.c_str(), IOFile::WRITE); + fp = make_unique<BufferedFile>(tempFilename.c_str(), IOFile::WRITE); } if(!*fp) { return false; |
