mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 867426 - Remove RawFlatString typedef; r=jonco
--HG-- extra : rebase_source : bdb9ef87e1b8a1b90b95863dddefe342d78dbc57
This commit is contained in:
parent
07d21c260d
commit
a5286c2569
@ -262,7 +262,7 @@ AtomizeAndTakeOwnership(JSContext *cx, const jschar *tbchars, size_t length,
|
||||
|
||||
AutoEnterAtomsCompartment ac(cx);
|
||||
|
||||
RawFlatString flat = js_NewString<CanGC>(cx, const_cast<jschar*>(tbchars), length);
|
||||
JSFlatString *flat = js_NewString<CanGC>(cx, const_cast<jschar*>(tbchars), length);
|
||||
if (!flat) {
|
||||
js_free((void*)tbchars);
|
||||
return NULL;
|
||||
@ -306,7 +306,7 @@ AtomizeAndCopyChars(JSContext *cx, const jschar *tbchars, size_t length, InternB
|
||||
|
||||
AutoEnterAtomsCompartment ac(cx);
|
||||
|
||||
RawFlatString flat = js_NewStringCopyN<allowGC>(cx, tbchars, length);
|
||||
JSFlatString *flat = js_NewStringCopyN<allowGC>(cx, tbchars, length);
|
||||
if (!flat)
|
||||
return NULL;
|
||||
|
||||
|
@ -122,7 +122,7 @@ JSONParser::readString()
|
||||
|
||||
jschar c = *current++;
|
||||
if (c == '"') {
|
||||
RawFlatString str = (ST == JSONParser::PropertyName)
|
||||
JSFlatString *str = (ST == JSONParser::PropertyName)
|
||||
? buffer.finishAtom()
|
||||
: buffer.finishString();
|
||||
if (!str)
|
||||
|
@ -30,7 +30,6 @@ ForwardDeclareJS(LinearString);
|
||||
class JSStableString;
|
||||
ForwardDeclareJS(InlineString);
|
||||
class JSRope;
|
||||
ForwardDeclareJS(FlatString);
|
||||
|
||||
namespace js {
|
||||
|
||||
|
@ -38,7 +38,7 @@ StringBuffer::extractWellSized()
|
||||
return buf;
|
||||
}
|
||||
|
||||
RawFlatString
|
||||
JSFlatString *
|
||||
StringBuffer::finishString()
|
||||
{
|
||||
JSContext *cx = context();
|
||||
|
@ -14,8 +14,6 @@
|
||||
|
||||
#include "js/Vector.h"
|
||||
|
||||
ForwardDeclareJS(FlatString);
|
||||
|
||||
namespace js {
|
||||
|
||||
/*
|
||||
@ -88,7 +86,7 @@ class StringBuffer
|
||||
* Creates a string from the characters in this buffer, then (regardless
|
||||
* whether string creation succeeded or failed) empties the buffer.
|
||||
*/
|
||||
js::RawFlatString finishString();
|
||||
JSFlatString *finishString();
|
||||
|
||||
/* Identical to finishString() except that an atom is created. */
|
||||
JSAtom *finishAtom();
|
||||
|
Loading…
Reference in New Issue
Block a user