mirror of
https://github.com/google/googletest.git
synced 2025-11-06 21:47:16 -05:00
Automated Code Change
PiperOrigin-RevId: 816182689 Change-Id: Ie2aaa55be6c2e4508aaafa7a0b30fe52ec334893
This commit is contained in:
committed by
Copybara-Service
parent
9706f75b8f
commit
de1c609262
@@ -296,12 +296,12 @@ class MatcherBase : private MatcherDescriberInterface {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
MatcherBase(MatcherBase&& other)
|
MatcherBase(MatcherBase&& other) noexcept
|
||||||
: vtable_(other.vtable_), buffer_(other.buffer_) {
|
: vtable_(other.vtable_), buffer_(other.buffer_) {
|
||||||
other.vtable_ = nullptr;
|
other.vtable_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
MatcherBase& operator=(MatcherBase&& other) {
|
MatcherBase& operator=(MatcherBase&& other) noexcept {
|
||||||
if (this == &other) return *this;
|
if (this == &other) return *this;
|
||||||
Destroy();
|
Destroy();
|
||||||
vtable_ = other.vtable_;
|
vtable_ = other.vtable_;
|
||||||
|
|||||||
Reference in New Issue
Block a user