Skip to content

Commit

Permalink
Merge bitcoin#30281: Update leveldb subtree to latest upstream
Browse files Browse the repository at this point in the history
a37778d Squashed 'src/leveldb/' changes from e2f10b4e47..688561cba8 (fanquake)

Pull request description:

  Includes bitcoin-core/leveldb-subtree#41 which is used in bitcoin#30234.

ACKs for top commit:
  theuni:
    utACK 95812d9

Tree-SHA512: 3d943695a3d33816cf5558b183f5629aa92a500a1544eecedf84952e93c8592a8cf0d554b88281fc0bad3c9e920ebcff1ed8edc12f8e73f36ed5335482beb829
  • Loading branch information
fanquake committed Jun 14, 2024
2 parents 54c5f67 + 95812d9 commit 0b94fb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/leveldb/include/leveldb/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
Expand Down

0 comments on commit 0b94fb8

Please sign in to comment.