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

Unified Diff: third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp

Issue 2143483002: Use the single char overload of append() when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp
diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp
index fe119e1d90e71cafc063f480d818db256339e69d..573f455990c7620f43d4a7a375df6760d3cea2ad 100644
--- a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp
@@ -85,13 +85,13 @@ static bool throwExceptionIfRemovedOrUpdating(bool isRemoved, bool isUpdating, E
WTF::String webTimeRangesToString(const WebTimeRanges& ranges)
{
StringBuilder stringBuilder;
- stringBuilder.append("{");
+ stringBuilder.append('{');
for (auto& r : ranges) {
stringBuilder.append(" [");
stringBuilder.appendNumber(r.start);
- stringBuilder.append(";");
+ stringBuilder.append(';');
stringBuilder.appendNumber(r.end);
- stringBuilder.append("]");
+ stringBuilder.append(']');
}
stringBuilder.append(" }");
return stringBuilder.toString();

Powered by Google App Engine
This is Rietveld 408576698