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

Side by Side Diff: Source/wtf/dtoa/utils.h

Issue 1211403004: Temporarily don't redefine DISALLOW_IMPLICIT_CONSTRUCTORS in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ 97 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
98 TypeName(const TypeName&); \ 98 TypeName(const TypeName&); \
99 void operator=(const TypeName&) 99 void operator=(const TypeName&)
100 100
101 // A macro to disallow all the implicit constructors, namely the 101 // A macro to disallow all the implicit constructors, namely the
102 // default constructor, copy constructor and operator= functions. 102 // default constructor, copy constructor and operator= functions.
103 // 103 //
104 // This should be used in the private: declarations for a class 104 // This should be used in the private: declarations for a class
105 // that wants to prevent anyone from instantiating it. This is 105 // that wants to prevent anyone from instantiating it. This is
106 // especially useful for classes containing only static methods. 106 // especially useful for classes containing only static methods.
107 #ifndef DISALLOW_IMPLICIT_CONSTRUCTORS
107 #define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \ 108 #define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \
108 TypeName(); \ 109 TypeName() = delete; \
109 DISALLOW_COPY_AND_ASSIGN(TypeName) 110 DISALLOW_COPY_AND_ASSIGN(TypeName)
111 #endif // DISALLOW_IMPLICIT_CONSTRUCTORS
110 112
111 namespace WTF { 113 namespace WTF {
112 114
113 namespace double_conversion { 115 namespace double_conversion {
114 116
115 static const int kCharSize = sizeof(char); 117 static const int kCharSize = sizeof(char);
116 118
117 // Returns the maximum of the two parameters. 119 // Returns the maximum of the two parameters.
118 template <typename T> 120 template <typename T>
119 static T Max(T a, T b) { 121 static T Max(T a, T b) {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 template <class Dest, class Source> 300 template <class Dest, class Source>
299 inline Dest BitCast(Source* source) { 301 inline Dest BitCast(Source* source) {
300 return BitCast<Dest>(reinterpret_cast<uintptr_t>(source)); 302 return BitCast<Dest>(reinterpret_cast<uintptr_t>(source));
301 } 303 }
302 304
303 } // namespace double_conversion 305 } // namespace double_conversion
304 306
305 } // namespace WTF 307 } // namespace WTF
306 308
307 #endif // DOUBLE_CONVERSION_UTILS_H_ 309 #endif // DOUBLE_CONVERSION_UTILS_H_
OLDNEW
« 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