Index: mojo/application/public/cpp/application_impl.h |
diff --git a/mojo/application/public/cpp/application_impl.h b/mojo/application/public/cpp/application_impl.h |
index a6e962c45b3d3dad519f11dda84544284dfe4f43..3081990ec135d13cabdde94e8b4ae83f3fd1ae74 100644 |
--- a/mojo/application/public/cpp/application_impl.h |
+++ b/mojo/application/public/cpp/application_impl.h |
@@ -5,6 +5,7 @@ |
#ifndef MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ |
#define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_IMPL_H_ |
+#include <utility> |
#include <vector> |
#include "base/macros.h" |
@@ -66,11 +67,9 @@ class ApplicationImpl : public Application { |
explicit ConnectParams(URLRequestPtr request); |
~ConnectParams(); |
- URLRequestPtr TakeRequest() { return request_.Pass(); } |
- CapabilityFilterPtr TakeFilter() { return filter_.Pass(); } |
- void set_filter(CapabilityFilterPtr filter) { |
- filter_ = filter.Pass(); |
- } |
+ URLRequestPtr TakeRequest() { return std::move(request_); } |
+ CapabilityFilterPtr TakeFilter() { return std::move(filter_); } |
+ void set_filter(CapabilityFilterPtr filter) { filter_ = std::move(filter); } |
private: |
URLRequestPtr request_; |