diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/JSStringBuilder.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/JSStringBuilder.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/runtime/JSStringBuilder.h b/Source/JavaScriptCore/runtime/JSStringBuilder.h index 1a2b812f0..e7778e4fb 100644 --- a/Source/JavaScriptCore/runtime/JSStringBuilder.h +++ b/Source/JavaScriptCore/runtime/JSStringBuilder.h @@ -28,7 +28,6 @@ #include "ExceptionHelpers.h" #include "JSString.h" -#include "UStringConcatenate.h" #include <wtf/Vector.h> namespace JSC { @@ -92,7 +91,7 @@ public: m_okay &= buffer16.tryAppend(str, len); } - void append(const UString& str) + void append(const String& str) { unsigned length = str.length(); @@ -129,12 +128,12 @@ public: buffer8.shrinkToFit(); if (!buffer8.data()) return throwOutOfMemoryError(exec); - return jsString(exec, UString::adopt(buffer8)); + return jsString(exec, String::adopt(buffer8)); } buffer16.shrinkToFit(); if (!buffer16.data()) return throwOutOfMemoryError(exec); - return jsString(exec, UString::adopt(buffer16)); + return jsString(exec, String::adopt(buffer16)); } protected: |