Bug 828248 - Part b: Pass MutableHandleId to IndexToId and IndexToIdSlow; r=sfink

This commit is contained in:
Ms2ger
2013-01-11 09:43:00 +01:00
parent 6ea5e853c7
commit a2b66f71ee
12 changed files with 53 additions and 49 deletions

View File

@@ -398,7 +398,7 @@ js::AtomizeChars(JSContext *cx, const jschar *chars, size_t length, InternBehavi
}
bool
js::IndexToIdSlow(JSContext *cx, uint32_t index, jsid *idp)
js::IndexToIdSlow(JSContext *cx, uint32_t index, MutableHandleId idp)
{
JS_ASSERT(index > JSID_INT_MAX);
@@ -410,7 +410,7 @@ js::IndexToIdSlow(JSContext *cx, uint32_t index, jsid *idp)
if (!atom)
return false;
*idp = JSID_FROM_BITS((size_t)atom);
idp.set(JSID_FROM_BITS((size_t)atom));
return true;
}