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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp

Issue 1527613006: Use Vector<...>::append(const U*, size_t) in SVGPathByteStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/core/svg/SVGPathByteStream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp b/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp
index 86b63718bb82623379f1cc66414b51d059e7459b..52a2dbeade1e09cc45fa5e19f84dc1b2e266b1c9 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp
@@ -36,8 +36,7 @@ public:
}
~CoalescingBuffer()
{
- for (size_t i = 0; i < m_currentOffset; ++i)
- m_byteStream.append(m_bytes[i]);
+ m_byteStream.append(m_bytes, m_currentOffset);
}
template<typename DataType>
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathByteStream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698