mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 03:43:58 +00:00
Must use string literal for named references.
This commit is contained in:
parent
6cc22d7ed7
commit
65b8358fa1
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user