diff options
author | costan <costan@google.com> | 2018-04-10 16:18:06 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2018-04-10 16:26:43 -0700 |
commit | 09217fd0677a4fd9713c7a4d774c494a7d3c1f15 (patch) | |
tree | 7b22f6275e16b1cb5059aa726d59e8c5a357c1d5 /db/version_edit.cc | |
parent | 6a3b915166fce75aaf9ac209114a3ad9caa34171 (diff) | |
download | leveldb-09217fd0677a4fd9713c7a4d774c494a7d3c1f15.tar.gz |
Replace NULL with nullptr in C++ files.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=192365747
Diffstat (limited to 'db/version_edit.cc')
-rw-r--r-- | db/version_edit.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/db/version_edit.cc b/db/version_edit.cc index f10a2d5..b7a366d 100644 --- a/db/version_edit.cc +++ b/db/version_edit.cc @@ -109,7 +109,7 @@ static bool GetLevel(Slice* input, int* level) { Status VersionEdit::DecodeFrom(const Slice& src) { Clear(); Slice input = src; - const char* msg = NULL; + const char* msg = nullptr; uint32_t tag; // Temporary storage for parsing @@ -119,7 +119,7 @@ Status VersionEdit::DecodeFrom(const Slice& src) { Slice str; InternalKey key; - while (msg == NULL && GetVarint32(&input, &tag)) { + while (msg == nullptr && GetVarint32(&input, &tag)) { switch (tag) { case kComparator: if (GetLengthPrefixedSlice(&input, &str)) { @@ -198,12 +198,12 @@ Status VersionEdit::DecodeFrom(const Slice& src) { } } - if (msg == NULL && !input.empty()) { + if (msg == nullptr && !input.empty()) { msg = "invalid tag"; } Status result; - if (msg != NULL) { + if (msg != nullptr) { result = Status::Corruption("VersionEdit", msg); } return result; |