diff options
author | Victor Costan <costan@google.com> | 2019-05-04 17:40:21 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2019-05-04 17:42:20 -0700 |
commit | 24424a1ef2c284f4ec30544a3458023362cbeacd (patch) | |
tree | 9af6fa8b9f885a3a3f8b5c011e882cab4c25dd4c /db/db_impl.cc | |
parent | 9a56c49ed415df1b72ba1c84c8e7ed00de497f68 (diff) | |
download | leveldb-24424a1ef2c284f4ec30544a3458023362cbeacd.tar.gz |
Style cleanup.
1) Convert iterator-based for loops to C++11 foreach loops.
2) Convert "void operator=" to "T& operator=".
3) Switch from copy operators from private to public deleted.
4) Switch from empty ctors / dtors to "= default" where appropriate.
PiperOrigin-RevId: 246679195
Diffstat (limited to 'db/db_impl.cc')
-rw-r--r-- | db/db_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/db_impl.cc b/db/db_impl.cc index 761ebf6..82be594 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -1469,7 +1469,7 @@ Status DB::Delete(const WriteOptions& opt, const Slice& key) { return Write(opt, &batch); } -DB::~DB() {} +DB::~DB() = default; Status DB::Open(const Options& options, const std::string& dbname, DB** dbptr) { *dbptr = nullptr; @@ -1514,7 +1514,7 @@ Status DB::Open(const Options& options, const std::string& dbname, DB** dbptr) { return s; } -Snapshot::~Snapshot() {} +Snapshot::~Snapshot() = default; Status DestroyDB(const std::string& dbname, const Options& options) { Env* env = options.env; |