Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / text / DateTimeFormat.cpp
index 7ea2101..1af63ea 100644 (file)
@@ -256,21 +256,21 @@ void DateTimeFormat::quoteAndAppendLiteral(const String& literal, StringBuilder&
     }
 
     if (literal.find('\'') == kNotFound) {
-        buffer.append("'");
+        buffer.append('\'');
         buffer.append(literal);
-        buffer.append("'");
+        buffer.append('\'');
         return;
     }
 
     for (unsigned i = 0; i < literal.length(); ++i) {
         if (literal[i] == '\'') {
-            buffer.append("''");
+            buffer.appendLiteral("''");
         } else {
             String escaped = literal.substring(i);
             escaped.replace("'", "''");
-            buffer.append("'");
+            buffer.append('\'');
             buffer.append(escaped);
-            buffer.append("'");
+            buffer.append('\'');
             return;
         }
     }