зеркало из https://github.com/mozilla/gecko-dev.git
Fix a couple of warnings by making callbacks static.
This commit is contained in:
Родитель
10008ae720
Коммит
524b4090da
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче