Add missing return in ScopeGuard::operator=.

This omission did not cause problems earlier due to having not been
instanced.

Change-Id: I7a54f82e06c299902f3bf6b4d3737cc5e30961ad
このコミットが含まれているのは:
Sean Keely
2021-11-15 18:50:46 -06:00
コミット 322588a60e
2個のファイルの変更、2行の追加、0行の削除
+1
ファイルの表示
@@ -158,6 +158,7 @@ class ScopeGuard {
dismiss_ = rhs.dismiss_;
release_ = rhs.release_;
rhs.dismiss_ = true;
return *this;
}
__forceinline void Dismiss() { dismiss_ = true; }
+1
ファイルの表示
@@ -130,6 +130,7 @@ template <typename lambda> class ScopeGuard {
dismiss_ = rhs.dismiss_;
release_ = rhs.release_;
rhs.dismiss_ = true;
return *this;
}
__forceinline void Dismiss() { dismiss_ = true; }