aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2024-06-13 13:17:57 +0100
committerfanquake <fanquake@gmail.com>2024-06-13 13:17:57 +0100
commit95812d912b6335caa7af2a084d84447fb4aad156 (patch)
tree8a03d82e0f6dd3771bd14b387668b2dea668bd39 /src
parent080a47cb8a8db27328bbdf57aa80cc4b4127a370 (diff)
parenta37778d4d32b4ddeff96f68a130dc8da3a84b278 (diff)
Update leveldb-subtree subtree to latest upstream
Diffstat (limited to 'src')
-rw-r--r--src/leveldb/include/leveldb/status.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leveldb/include/leveldb/status.h b/src/leveldb/include/leveldb/status.h
index e3273144e4..68efe3001a 100644
--- a/src/leveldb/include/leveldb/status.h
+++ b/src/leveldb/include/leveldb/status.h
@@ -103,6 +103,8 @@ class LEVELDB_EXPORT Status {
inline Status::Status(const Status& rhs) {
state_ = (rhs.state_ == nullptr) ? nullptr : CopyState(rhs.state_);
}
+
+// NOLINTBEGIN(bugprone-unhandled-self-assignment)
inline Status& Status::operator=(const Status& rhs) {
// The following condition catches both aliasing (when this == &rhs),
// and the common case where both rhs and *this are ok.
@@ -112,6 +114,8 @@ inline Status& Status::operator=(const Status& rhs) {
}
return *this;
}
+// NOLINTEND(bugprone-unhandled-self-assignment)
+
inline Status& Status::operator=(Status&& rhs) noexcept {
std::swap(state_, rhs.state_);
return *this;