Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg
This commit is contained in:
@@ -298,7 +298,7 @@ AtomIsInterned(JSContext *cx, JSAtom *atom)
|
||||
*/
|
||||
MOZ_ALWAYS_INLINE
|
||||
static JSAtom *
|
||||
AtomizeAndTakeOwnership(ExclusiveContext *cx, jschar *tbchars, size_t length, InternBehavior ib)
|
||||
AtomizeAndtake(ExclusiveContext *cx, jschar *tbchars, size_t length, InternBehavior ib)
|
||||
{
|
||||
JS_ASSERT(tbchars[length] == 0);
|
||||
|
||||
@@ -461,7 +461,7 @@ js::Atomize(ExclusiveContext *cx, const char *bytes, size_t length, InternBehavi
|
||||
jschar *tbcharsZ = InflateString(cx, bytes, &length);
|
||||
if (!tbcharsZ)
|
||||
return nullptr;
|
||||
return AtomizeAndTakeOwnership(cx, tbcharsZ, length, ib);
|
||||
return AtomizeAndtake(cx, tbcharsZ, length, ib);
|
||||
}
|
||||
|
||||
JSAtom *
|
||||
|
||||
Reference in New Issue
Block a user