Index: trunk/Source/bindings/v8/SerializedScriptValue.cpp |
=================================================================== |
--- trunk/Source/bindings/v8/SerializedScriptValue.cpp (revision 154824) |
+++ trunk/Source/bindings/v8/SerializedScriptValue.cpp (working copy) |
@@ -76,7 +76,6 @@ |
#include "wtf/Uint8Array.h" |
#include "wtf/Uint8ClampedArray.h" |
#include "wtf/Vector.h" |
-#include "wtf/text/StringBuffer.h" |
#include "wtf/text/StringUTF8Adaptor.h" |
// FIXME: consider crashing in debug mode on deserialization errors |
@@ -2251,9 +2250,9 @@ |
// Decode wire data from big endian to host byte order. |
ASSERT(!(data.size() % sizeof(UChar))); |
size_t length = data.size() / sizeof(UChar); |
- StringBuffer<UChar> buffer(length); |
+ Vector<UChar> buffer(length); |
const UChar* src = reinterpret_cast<const UChar*>(data.data()); |
- UChar* dst = buffer.characters(); |
+ UChar* dst = buffer.data(); |
for (size_t i = 0; i < length; i++) |
dst[i] = ntohs(src[i]); |