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

Unified Diff: Source/core/html/forms/EmailInputType.cpp

Issue 482753002: Use StringBuilder::appendLiteral() / StringBuilder::append(char) when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « Source/core/html/ImageDocument.cpp ('k') | Source/core/html/forms/FormController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/EmailInputType.cpp
diff --git a/Source/core/html/forms/EmailInputType.cpp b/Source/core/html/forms/EmailInputType.cpp
index ea280575679a93c483bd9d8dbf39205cda8c649d..47fb355a0cc8a482393b3660bb68f119f8dedd78 100644
--- a/Source/core/html/forms/EmailInputType.cpp
+++ b/Source/core/html/forms/EmailInputType.cpp
@@ -257,7 +257,7 @@ String EmailInputType::sanitizeValue(const String& proposedValue) const
StringBuilder strippedValue;
for (size_t i = 0; i < addresses.size(); ++i) {
if (i > 0)
- strippedValue.append(",");
+ strippedValue.append(',');
strippedValue.append(stripLeadingAndTrailingHTMLSpaces(addresses[i]));
}
return strippedValue.toString();
@@ -274,7 +274,7 @@ String EmailInputType::convertFromVisibleValue(const String& visibleValue) const
builder.reserveCapacity(sanitizedValue.length());
for (size_t i = 0; i < addresses.size(); ++i) {
if (i > 0)
- builder.append(",");
+ builder.append(',');
builder.append(convertEmailAddressToASCII(addresses[i]));
}
return builder.toString();
@@ -292,7 +292,7 @@ String EmailInputType::visibleValue() const
builder.reserveCapacity(value.length());
for (size_t i = 0; i < addresses.size(); ++i) {
if (i > 0)
- builder.append(",");
+ builder.append(',');
builder.append(convertEmailAddressToUnicode(addresses[i]));
}
return builder.toString();
« no previous file with comments | « Source/core/html/ImageDocument.cpp ('k') | Source/core/html/forms/FormController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698