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

Unified Diff: mojo/public/cpp/bindings/struct_ptr.h

Issue 1558333002: Rectify our use of std::nullptr_t, inclusions of <stddef.h>/<cstddef>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « mojo/public/cpp/bindings/interface_request.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/struct_ptr.h
diff --git a/mojo/public/cpp/bindings/struct_ptr.h b/mojo/public/cpp/bindings/struct_ptr.h
index 1b34a9ec036149c229d63d1f4a139ceb8de96093..66edb89113806fe5b28f85b4c51c159e50ed332c 100644
--- a/mojo/public/cpp/bindings/struct_ptr.h
+++ b/mojo/public/cpp/bindings/struct_ptr.h
@@ -105,11 +105,11 @@ template <typename Struct>
class InlinedStructPtr {
public:
InlinedStructPtr() : is_null_(true) {}
- InlinedStructPtr(decltype(nullptr)) : is_null_(true) {}
+ InlinedStructPtr(std::nullptr_t) : is_null_(true) {}
~InlinedStructPtr() {}
- InlinedStructPtr& operator=(decltype(nullptr)) {
+ InlinedStructPtr& operator=(std::nullptr_t) {
reset();
return *this;
}
« no previous file with comments | « mojo/public/cpp/bindings/interface_request.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698