зеркало из https://github.com/mozilla/pjs.git
Fix a couple of warnings by making callbacks static.
This commit is contained in:
Родитель
207d15e2a5
Коммит
819907dcbd
|
@ -40,7 +40,7 @@ nsDOMAttributeMap::nsDOMAttributeMap(nsIContent* aContent)
|
|||
// we'll be told to drop our reference
|
||||
}
|
||||
|
||||
PR_CALLBACK PRIntn
|
||||
PR_STATIC_CALLBACK (PRIntn)
|
||||
RemoveAttributes(PLHashEntry* he, PRIntn i, void* arg)
|
||||
{
|
||||
nsIDOMAttr* attr = (nsIDOMAttr*)he->value;
|
||||
|
@ -58,7 +58,7 @@ RemoveAttributes(PLHashEntry* he, PRIntn i, void* arg)
|
|||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
||||
PR_CALLBACK PRIntn
|
||||
PR_STATIC_CALLBACK (PRIntn)
|
||||
DropReferencesInAttributes(PLHashEntry* he, PRIntn i, void* arg)
|
||||
{
|
||||
nsDOMAttribute* attr = (nsDOMAttribute*)he->value;
|
||||
|
|
|
@ -40,7 +40,7 @@ nsDOMAttributeMap::nsDOMAttributeMap(nsIContent* aContent)
|
|||
// we'll be told to drop our reference
|
||||
}
|
||||
|
||||
PR_CALLBACK PRIntn
|
||||
PR_STATIC_CALLBACK (PRIntn)
|
||||
RemoveAttributes(PLHashEntry* he, PRIntn i, void* arg)
|
||||
{
|
||||
nsIDOMAttr* attr = (nsIDOMAttr*)he->value;
|
||||
|
@ -58,7 +58,7 @@ RemoveAttributes(PLHashEntry* he, PRIntn i, void* arg)
|
|||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
|
||||
PR_CALLBACK PRIntn
|
||||
PR_STATIC_CALLBACK (PRIntn)
|
||||
DropReferencesInAttributes(PLHashEntry* he, PRIntn i, void* arg)
|
||||
{
|
||||
nsDOMAttribute* attr = (nsDOMAttribute*)he->value;
|
||||
|
|
Загрузка…
Ссылка в новой задаче