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

Unified Diff: third_party/WebKit/Source/wtf/VectorTraits.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/VectorTest.cpp ('k') | third_party/WebKit/Source/wtf/WTF.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/VectorTraits.h
diff --git a/third_party/WebKit/Source/wtf/VectorTraits.h b/third_party/WebKit/Source/wtf/VectorTraits.h
index 878d95daaf5429c2ddfd213a41783b200cadecee..951881b861f87fec3e41d3036b1bd2ebe82c5294 100644
--- a/third_party/WebKit/Source/wtf/VectorTraits.h
+++ b/third_party/WebKit/Source/wtf/VectorTraits.h
@@ -55,8 +55,8 @@ struct VectorTraitsBase {
struct IsTraceableInCollection {
static const bool value = IsTraceable<T>::value;
};
- static const WeakHandlingFlag weakHandlingFlag =
- NoWeakHandlingInCollections; // We don't support weak handling in vectors.
+ // We don't support weak handling in vectors.
+ static const WeakHandlingFlag weakHandlingFlag = NoWeakHandlingInCollections;
};
template <typename T>
@@ -73,16 +73,18 @@ struct SimpleClassVectorTraits : VectorTraitsBase<T> {
static const bool canCompareWithMemcmp = true;
};
-// We know std::unique_ptr and RefPtr are simple enough that initializing to 0 and moving
-// with memcpy (and then not destructing the original) will totally work.
+// We know std::unique_ptr and RefPtr are simple enough that initializing to 0
+// and moving with memcpy (and then not destructing the original) will totally
+// work.
template <typename P>
struct VectorTraits<RefPtr<P>> : SimpleClassVectorTraits<RefPtr<P>> {};
template <typename P>
struct VectorTraits<std::unique_ptr<P>>
: SimpleClassVectorTraits<std::unique_ptr<P>> {
- // std::unique_ptr -> std::unique_ptr has a very particular structure that tricks the
- // normal type traits into thinking that the class is "trivially copyable".
+ // std::unique_ptr -> std::unique_ptr has a very particular structure that
+ // tricks the normal type traits into thinking that the class is "trivially
+ // copyable".
static const bool canCopyWithMemcpy = false;
};
static_assert(VectorTraits<RefPtr<int>>::canInitializeWithMemset,
@@ -124,8 +126,8 @@ struct VectorTraits<std::pair<First, Second>> {
IsTraceableInCollectionTrait<FirstTraits>::value ||
IsTraceableInCollectionTrait<SecondTraits>::value;
};
- static const WeakHandlingFlag weakHandlingFlag =
- NoWeakHandlingInCollections; // We don't support weak handling in vectors.
+ // We don't support weak handling in vectors.
+ static const WeakHandlingFlag weakHandlingFlag = NoWeakHandlingInCollections;
};
} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/VectorTest.cpp ('k') | third_party/WebKit/Source/wtf/WTF.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698