| Index: mojo/public/cpp/bindings/lib/filter_chain.cc
|
| diff --git a/mojo/public/cpp/bindings/lib/filter_chain.cc b/mojo/public/cpp/bindings/lib/filter_chain.cc
|
| index 663456218498082e6f85047ce6f9b4904574c11d..d32eb7860896e3d670c3075310d57f4276092a89 100644
|
| --- a/mojo/public/cpp/bindings/lib/filter_chain.cc
|
| +++ b/mojo/public/cpp/bindings/lib/filter_chain.cc
|
| @@ -14,14 +14,14 @@ namespace internal {
|
| FilterChain::FilterChain(MessageReceiver* sink) : sink_(sink) {
|
| }
|
|
|
| -FilterChain::FilterChain(RValue other) : sink_(other.object->sink_) {
|
| - other.object->sink_ = nullptr;
|
| - filters_.swap(other.object->filters_);
|
| +FilterChain::FilterChain(FilterChain&& other) : sink_(other.sink_) {
|
| + other.sink_ = nullptr;
|
| + filters_.swap(other.filters_);
|
| }
|
|
|
| -FilterChain& FilterChain::operator=(RValue other) {
|
| - std::swap(sink_, other.object->sink_);
|
| - filters_.swap(other.object->filters_);
|
| +FilterChain& FilterChain::operator=(FilterChain&& other) {
|
| + std::swap(sink_, other.sink_);
|
| + filters_.swap(other.filters_);
|
| return *this;
|
| }
|
|
|
|
|