зеркало из https://github.com/mozilla/pjs.git
Must use string literal for named references.
This commit is contained in:
Родитель
a321138b25
Коммит
2d8cdc7b21
|
@ -512,12 +512,9 @@ nsGenericDOMDataNode::GetScriptObject(nsIContent *aOuterContent,
|
|||
nsAutoString nodeName;
|
||||
char nameBuf[128];
|
||||
|
||||
node->GetNodeName(nodeName);
|
||||
nodeName.ToCString(nameBuf, sizeof(nameBuf));
|
||||
|
||||
aContext->AddNamedReference((void *)&mScriptObject,
|
||||
mScriptObject,
|
||||
nameBuf);
|
||||
"nsGenericDOMDataNode::mScriptObject");
|
||||
}
|
||||
NS_RELEASE(node);
|
||||
NS_RELEASE(factory);
|
||||
|
|
|
@ -1225,12 +1225,10 @@ nsGenericElement::GetScriptObject(nsIScriptContext* aContext,
|
|||
(void**)&slots->mScriptObject);
|
||||
NS_RELEASE(factory);
|
||||
|
||||
char tagBuf[50];
|
||||
tag.ToCString(tagBuf, sizeof(tagBuf));
|
||||
if (nsnull != mDocument) {
|
||||
aContext->AddNamedReference((void *)&slots->mScriptObject,
|
||||
slots->mScriptObject,
|
||||
tagBuf);
|
||||
"nsGenericElement::mScriptObject");
|
||||
}
|
||||
}
|
||||
*aScriptObject = slots->mScriptObject;
|
||||
|
|
|
@ -512,12 +512,9 @@ nsGenericDOMDataNode::GetScriptObject(nsIContent *aOuterContent,
|
|||
nsAutoString nodeName;
|
||||
char nameBuf[128];
|
||||
|
||||
node->GetNodeName(nodeName);
|
||||
nodeName.ToCString(nameBuf, sizeof(nameBuf));
|
||||
|
||||
aContext->AddNamedReference((void *)&mScriptObject,
|
||||
mScriptObject,
|
||||
nameBuf);
|
||||
"nsGenericDOMDataNode::mScriptObject");
|
||||
}
|
||||
NS_RELEASE(node);
|
||||
NS_RELEASE(factory);
|
||||
|
|
|
@ -1225,12 +1225,10 @@ nsGenericElement::GetScriptObject(nsIScriptContext* aContext,
|
|||
(void**)&slots->mScriptObject);
|
||||
NS_RELEASE(factory);
|
||||
|
||||
char tagBuf[50];
|
||||
tag.ToCString(tagBuf, sizeof(tagBuf));
|
||||
if (nsnull != mDocument) {
|
||||
aContext->AddNamedReference((void *)&slots->mScriptObject,
|
||||
slots->mScriptObject,
|
||||
tagBuf);
|
||||
"nsGenericElement::mScriptObject");
|
||||
}
|
||||
}
|
||||
*aScriptObject = slots->mScriptObject;
|
||||
|
|
Загрузка…
Ссылка в новой задаче