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

Unified Diff: mojo/public/cpp/bindings/tests/container_test_util.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/tests/container_test_util.h
diff --git a/mojo/public/cpp/bindings/tests/container_test_util.h b/mojo/public/cpp/bindings/tests/container_test_util.h
index 1c3e5eef6de7dc7a3f2bea9c23fd2b06c71482e0..1e29d225cd70adcd792022e9086e5727a0b3a266 100644
--- a/mojo/public/cpp/bindings/tests/container_test_util.h
+++ b/mojo/public/cpp/bindings/tests/container_test_util.h
@@ -28,12 +28,12 @@ class CopyableType {
};
class MoveOnlyType {
- MOJO_MOVE_ONLY_TYPE_FOR_CPP_03(MoveOnlyType, RValue)
+ MOJO_MOVE_ONLY_TYPE(MoveOnlyType)
public:
typedef MoveOnlyType Data_;
MoveOnlyType();
- MoveOnlyType(RValue other);
- MoveOnlyType& operator=(RValue other);
+ MoveOnlyType(MoveOnlyType&& other);
+ MoveOnlyType& operator=(MoveOnlyType&& other);
~MoveOnlyType();
bool moved() const { return moved_; }

Powered by Google App Engine
This is Rietveld 408576698