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

Unified Diff: Source/core/css/MediaQueryExp.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/css/MediaQuery.cpp ('k') | Source/core/css/MediaQuerySetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQueryExp.cpp
diff --git a/Source/core/css/MediaQueryExp.cpp b/Source/core/css/MediaQueryExp.cpp
index a6b1c5a4a8594cc3df970060bd33dcf87fab6f98..fd465493b1ba4a7f80b927fd6bac3e44df2483ee 100644
--- a/Source/core/css/MediaQueryExp.cpp
+++ b/Source/core/css/MediaQueryExp.cpp
@@ -308,13 +308,13 @@ bool MediaQueryExp::operator==(const MediaQueryExp& other) const
String MediaQueryExp::serialize() const
{
StringBuilder result;
- result.append("(");
+ result.append('(');
result.append(m_mediaFeature.lower());
if (m_expValue.isValid()) {
- result.append(": ");
+ result.appendLiteral(": ");
result.append(m_expValue.cssText());
}
- result.append(")");
+ result.append(')');
return result.toString();
}
@@ -332,7 +332,7 @@ String MediaQueryExpValue::cssText() const
output.append(CSSPrimitiveValue::unitTypeToString(unit));
} else if (isRatio) {
output.append(printNumber(numerator));
- output.append("/");
+ output.append('/');
output.append(printNumber(denominator));
} else if (isID) {
output.append(getValueName(id));
« no previous file with comments | « Source/core/css/MediaQuery.cpp ('k') | Source/core/css/MediaQuerySetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698