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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/MathExtrasTest.cpp ('k') | third_party/WebKit/Source/wtf/text/StringImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Vector.h
diff --git a/third_party/WebKit/Source/wtf/Vector.h b/third_party/WebKit/Source/wtf/Vector.h
index 851d75a3e4397da288beb4b54be1f209677888c5..eb1ff8a1219f99819254ba31626848756b93d8e6 100644
--- a/third_party/WebKit/Source/wtf/Vector.h
+++ b/third_party/WebKit/Source/wtf/Vector.h
@@ -173,13 +173,15 @@ struct VectorMover<true, T> {
STATIC_ONLY(VectorMover);
static void move(const T* src, const T* srcEnd, T* dst) {
if (LIKELY(dst && src))
- memcpy(dst, src, reinterpret_cast<const char*>(srcEnd) -
- reinterpret_cast<const char*>(src));
+ memcpy(dst, src,
+ reinterpret_cast<const char*>(srcEnd) -
+ reinterpret_cast<const char*>(src));
}
static void moveOverlapping(const T* src, const T* srcEnd, T* dst) {
if (LIKELY(dst && src))
- memmove(dst, src, reinterpret_cast<const char*>(srcEnd) -
- reinterpret_cast<const char*>(src));
+ memmove(dst, src,
+ reinterpret_cast<const char*>(srcEnd) -
+ reinterpret_cast<const char*>(src));
}
static void swap(T* src, T* srcEnd, T* dst) {
std::swap_ranges(reinterpret_cast<char*>(src),
@@ -209,8 +211,9 @@ struct VectorCopier<true, T> {
STATIC_ONLY(VectorCopier);
static void uninitializedCopy(const T* src, const T* srcEnd, T* dst) {
if (LIKELY(dst && src))
- memcpy(dst, src, reinterpret_cast<const char*>(srcEnd) -
- reinterpret_cast<const char*>(src));
+ memcpy(dst, src,
+ reinterpret_cast<const char*>(srcEnd) -
+ reinterpret_cast<const char*>(src));
}
template <typename U>
static void uninitializedCopy(const U* src, const U* srcEnd, T* dst) {
« no previous file with comments | « third_party/WebKit/Source/wtf/MathExtrasTest.cpp ('k') | third_party/WebKit/Source/wtf/text/StringImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698