File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ class LEVELDB_EXPORT Status {
103
103
inline Status::Status (const Status& rhs) {
104
104
state_ = (rhs.state_ == nullptr ) ? nullptr : CopyState (rhs.state_ );
105
105
}
106
+
107
+ // NOLINTBEGIN(bugprone-unhandled-self-assignment)
106
108
inline Status& Status::operator =(const Status& rhs) {
107
109
// The following condition catches both aliasing (when this == &rhs),
108
110
// and the common case where both rhs and *this are ok.
@@ -112,6 +114,8 @@ inline Status& Status::operator=(const Status& rhs) {
112
114
}
113
115
return *this ;
114
116
}
117
+ // NOLINTEND(bugprone-unhandled-self-assignment)
118
+
115
119
inline Status& Status::operator =(Status&& rhs) noexcept {
116
120
std::swap (state_, rhs.state_ );
117
121
return *this ;
You can’t perform that action at this time.
0 commit comments