Must use string literal for named references.

This commit is contained in:
waterson%netscape.com 2000-05-03 23:34:10 +00:00
parent 6cc22d7ed7
commit 65b8358fa1
2 changed files with 2 additions and 12 deletions

View File

@ -938,14 +938,9 @@ nsGenericElement::SetDocument(nsIDocument* aDocument, PRBool aDeep)
if (globalObject) {
nsCOMPtr<nsIScriptContext> context;
if (NS_OK == globalObject->GetContext(getter_AddRefs(context)) && context) {
nsAutoString tag;
char tagBuf[50];
mTag->ToString(tag);
tag.ToCString(tagBuf, sizeof(tagBuf));
context->AddNamedReference((void *)&mDOMSlots->mScriptObject,
mDOMSlots->mScriptObject,
tagBuf);
"nsGenericElement::mScriptObject");
}
}
}

View File

@ -938,14 +938,9 @@ nsGenericElement::SetDocument(nsIDocument* aDocument, PRBool aDeep)
if (globalObject) {
nsCOMPtr<nsIScriptContext> context;
if (NS_OK == globalObject->GetContext(getter_AddRefs(context)) && context) {
nsAutoString tag;
char tagBuf[50];
mTag->ToString(tag);
tag.ToCString(tagBuf, sizeof(tagBuf));
context->AddNamedReference((void *)&mDOMSlots->mScriptObject,
mDOMSlots->mScriptObject,
tagBuf);
"nsGenericElement::mScriptObject");
}
}
}