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

Unified Diff: third_party/WebKit/Source/wtf/StdLibExtras.h

Issue 2386843002: reflow comments in wtf (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 | « third_party/WebKit/Source/wtf/StaticConstructors.h ('k') | third_party/WebKit/Source/wtf/StringExtras.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/StdLibExtras.h
diff --git a/third_party/WebKit/Source/wtf/StdLibExtras.h b/third_party/WebKit/Source/wtf/StdLibExtras.h
index 8c9c6bfe8e89256de1355284a7782526be11d16f..885f9ddfefeb6986d1271e251d66b59711ec1e8a 100644
--- a/third_party/WebKit/Source/wtf/StdLibExtras.h
+++ b/third_party/WebKit/Source/wtf/StdLibExtras.h
@@ -81,9 +81,10 @@ class StaticLocalWrapper<T, true> {
static T& unwrap(blink::Persistent<T>* singleton) {
ASSERT(singleton);
- // If this assert triggers, you're supplying an empty ("()") 'Arguments' argument
- // to DEFINE_STATIC_LOCAL() - it must be the heap object you wish to create
- // as a static singleton and wrapped up with a Persistent reference.
+ // If this assert triggers, you're supplying an empty ("()") 'Arguments'
+ // argument to DEFINE_STATIC_LOCAL() - it must be the heap object you wish
+ // to create as a static singleton and wrapped up with a Persistent
+ // reference.
ASSERT(*singleton);
return **singleton;
}
@@ -118,10 +119,11 @@ class StaticLocalWrapper<T, true> {
WrappedTypeFor##Name, new WrappedTypeFor##Name Arguments); \
Type& Name = StaticLocalWrapper<Type>::unwrap(WrappedInstanceFor##Name);
-// Use this to declare and define a static local pointer to a ref-counted object so that
-// it is leaked so that the object's destructors are not called at exit.
-// This macro should be used with ref-counted objects rather than DEFINE_STATIC_LOCAL macro,
-// as this macro does not lead to an extra memory allocation.
+// Use this to declare and define a static local pointer to a ref-counted object
+// so that it is leaked so that the object's destructors are not called at
+// exit. This macro should be used with ref-counted objects rather than
+// DEFINE_STATIC_LOCAL macro, as this macro does not lead to an extra memory
+// allocation.
#define DEFINE_STATIC_REF(type, name, arguments) \
static type* name = PassRefPtr<type>(arguments).leakRef();
@@ -219,7 +221,8 @@ inline To safeCast(From value) {
"Unsigned to signed conversion not allowed for types with " \
"identical size (could overflow).");
-// Macro that returns a compile time constant with the length of an array, but gives an error if passed a non-array.
+// Macro that returns a compile time constant with the length of an array, but
+// gives an error if passed a non-array.
template <typename T, size_t Size>
char (&ArrayLengthHelperFunction(T (&)[Size]))[Size];
// GCC needs some help to deduce a 0 length array.
« no previous file with comments | « third_party/WebKit/Source/wtf/StaticConstructors.h ('k') | third_party/WebKit/Source/wtf/StringExtras.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698