Bug 989414 - Convert FixedHeapPtr to take a T* as template parameter instead of T; r=jonco

This commit is contained in:
Terrence Cole
2014-04-25 14:22:27 -07:00
parent 6047e831e4
commit 77013bc9bb
4 changed files with 20 additions and 17 deletions

View File

@@ -149,7 +149,7 @@ JSRuntime::initializeAtoms(JSContext *cx)
if (!commonNames)
return false;
FixedHeapPtr<PropertyName> *names = reinterpret_cast<FixedHeapPtr<PropertyName> *>(commonNames);
ImmutablePropertyNamePtr *names = reinterpret_cast<ImmutablePropertyNamePtr *>(commonNames);
for (size_t i = 0; i < ArrayLength(cachedNames); i++, names++) {
JSAtom *atom = Atomize(cx, cachedNames[i].str, cachedNames[i].length, InternAtom);
if (!atom)