From 524b4090da7e086a690a6ca010faf631b6ca5361 Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Thu, 14 Jan 1999 23:37:57 +0000 Subject: [PATCH] Fix a couple of warnings by making callbacks static. --- content/base/src/nsDOMAttributeMap.cpp | 4 ++-- layout/base/src/nsDOMAttributeMap.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/base/src/nsDOMAttributeMap.cpp b/content/base/src/nsDOMAttributeMap.cpp index 04a9f1adc369..4bb11e981744 100644 --- a/content/base/src/nsDOMAttributeMap.cpp +++ b/content/base/src/nsDOMAttributeMap.cpp @@ -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; diff --git a/layout/base/src/nsDOMAttributeMap.cpp b/layout/base/src/nsDOMAttributeMap.cpp index 04a9f1adc369..4bb11e981744 100644 --- a/layout/base/src/nsDOMAttributeMap.cpp +++ b/layout/base/src/nsDOMAttributeMap.cpp @@ -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;