Replace more instances of += with StringBuilder
[WebKit-https.git] / Source / WebCore / fileapi / BlobURL.cpp
index f747853..4341ed2 100644 (file)
@@ -72,11 +72,7 @@ String BlobURL::getIdentifier(const KURL& url)
 KURL BlobURL::createBlobURL(const String& originString)
 {
     ASSERT(!originString.isEmpty());
-    String urlString = kBlobProtocol;
-    urlString += ":";
-    urlString += encodeWithURLEscapeSequences(originString);
-    urlString += "/";
-    urlString += createCanonicalUUIDString();
+    String urlString = "blob:" + encodeWithURLEscapeSequences(originString) + '/' + createCanonicalUUIDString();
     return KURL(ParsedURLString, urlString);
 }