String::isolatedCopy() can avoid a copy if the original is a temporary
Created attachment 200123 [details] Patch
Attachment 200123 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Compiler.h', u'Source/WTF/wtf/text/WTFString.cpp', u'Source/WTF/wtf/text/WTFString.h']" exit_code: 1 Source/WTF/wtf/text/WTFString.cpp:659: This { should be at the end of the previous line [whitespace/braces] [4] Source/WTF/wtf/text/WTFString.cpp:665: Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side. [whitespace/operators] [4] Source/WTF/wtf/text/WTFString.cpp:666: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 3 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Committed r149372: <http://trac.webkit.org/changeset/149372>