Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: mojo/public/cpp/bindings/lib/filter_chain.h

Issue 828373008: Allow constructing {Interface,Struct}Ptr from nullptr (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/lib/filter_chain.h
diff --git a/mojo/public/cpp/bindings/lib/filter_chain.h b/mojo/public/cpp/bindings/lib/filter_chain.h
index fc6664266a78f242aab0f104ccefa2fca9423ceb..bd7f9f54bf0116d3fd3e60d6f7da9efed55fdd7f 100644
--- a/mojo/public/cpp/bindings/lib/filter_chain.h
+++ b/mojo/public/cpp/bindings/lib/filter_chain.h
@@ -15,17 +15,15 @@ namespace mojo {
namespace internal {
class FilterChain {
- MOJO_MOVE_ONLY_TYPE_FOR_CPP_03(FilterChain, RValue)
+ MOJO_MOVE_ONLY_TYPE(FilterChain)
public:
// Doesn't take ownership of |sink|. Therefore |sink| has to stay alive while
// this object is alive.
explicit FilterChain(MessageReceiver* sink = nullptr);
- // Move-only constructor and operator=.
- FilterChain(RValue other);
- FilterChain& operator=(RValue other);
-
+ FilterChain(FilterChain&& other);
+ FilterChain& operator=(FilterChain&& other);
~FilterChain();
template <typename FilterType>

Powered by Google App Engine
This is Rietveld 408576698