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

Side by Side Diff: Source/wtf/NullPtr.h

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/wtf/ArrayBufferView.cpp ('k') | Source/wtf/PassRefPtr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 2
3 Copyright (C) 2010 Apple Inc. All rights reserved. 3 Copyright (C) 2010 Apple Inc. All rights reserved.
4 4
5 Redistribution and use in source and binary forms, with or without 5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions 6 modification, are permitted provided that the following conditions
7 are met: 7 are met:
8 1. Redistributions of source code must retain the above copyright 8 1. Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer. 9 notice, this list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright 10 2. Redistributions in binary form must reproduce the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 class nullptr_t { }; 50 class nullptr_t { };
51 } 51 }
52 extern std::nullptr_t nullptr; 52 extern std::nullptr_t nullptr;
53 53
54 #endif 54 #endif
55 55
56 #if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS) 56 #if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS)
57 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \ 57 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \
58 private: \ 58 private: \
59 ClassName(int) = delete 59 ClassName(int) = delete
60 #define WTF_DISALLOW_ZERO_ASSIGNMENT(ClassName) \
61 private: \
62 ClassName& operator=(int) = delete
60 #else 63 #else
61 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \ 64 #define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \
62 private: \ 65 private: \
63 ClassName(int) 66 ClassName(int)
67 #define WTF_DISALLOW_ZERO_ASSIGNMENT(ClassName) \
68 private: \
69 ClassName& operator=(int)
64 #endif 70 #endif
65 71
66 #endif 72 #endif
OLDNEW
« no previous file with comments | « Source/wtf/ArrayBufferView.cpp ('k') | Source/wtf/PassRefPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698