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

Unified Diff: mojo/public/cpp/system/macros.h

Issue 1352683002: Make the suppressed copy/assignment operators in MOJO_MOVE_ONLY_TYPE take const refs. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/system/macros.h
diff --git a/mojo/public/cpp/system/macros.h b/mojo/public/cpp/system/macros.h
index 475ec9bc3d286cbd5b35045d8df13f5cc20deb77..36a3058c12157ce43d8ad9a75bba5dfdb4e7c034 100644
--- a/mojo/public/cpp/system/macros.h
+++ b/mojo/public/cpp/system/macros.h
@@ -35,8 +35,8 @@ char(&ArraySizeHelper(const T(&array)[N]))[N];
// to tell that this type is move-only.
#define MOJO_MOVE_ONLY_TYPE(type) \
private: \
- type(type&); \
- void operator=(type&); \
+ type(const type&); \
+ void operator=(const type&); \
\
public: \
type&& Pass() MOJO_WARN_UNUSED_RESULT { return static_cast<type&&>(*this); } \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698