Skip to content

Commit 0b94fb8

Browse files
committed
Merge bitcoin/bitcoin#30281: Update leveldb subtree to latest upstream
a37778d Squashed 'src/leveldb/' changes from e2f10b4e47..688561cba8 (fanquake) Pull request description: Includes bitcoin-core/leveldb-subtree#41 which is used in #30234. ACKs for top commit: theuni: utACK 95812d9 Tree-SHA512: 3d943695a3d33816cf5558b183f5629aa92a500a1544eecedf84952e93c8592a8cf0d554b88281fc0bad3c9e920ebcff1ed8edc12f8e73f36ed5335482beb829
2 parents 54c5f67 + 95812d9 commit 0b94fb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/leveldb/include/leveldb/status.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ class LEVELDB_EXPORT Status {
103103
inline Status::Status(const Status& rhs) {
104104
state_ = (rhs.state_ == nullptr) ? nullptr : CopyState(rhs.state_);
105105
}
106+
107+
// NOLINTBEGIN(bugprone-unhandled-self-assignment)
106108
inline Status& Status::operator=(const Status& rhs) {
107109
// The following condition catches both aliasing (when this == &rhs),
108110
// and the common case where both rhs and *this are ok.
@@ -112,6 +114,8 @@ inline Status& Status::operator=(const Status& rhs) {
112114
}
113115
return *this;
114116
}
117+
// NOLINTEND(bugprone-unhandled-self-assignment)
118+
115119
inline Status& Status::operator=(Status&& rhs) noexcept {
116120
std::swap(state_, rhs.state_);
117121
return *this;

0 commit comments

Comments
 (0)