diff --git a/content/xul/templates/src/nsXMLBinding.cpp b/content/xul/templates/src/nsXMLBinding.cpp
index 9f34a6ac4a35d046ecf8619cd68f6a6dab108680..15b884151d80de501660145c6572a0f76e296c5a 100644
--- a/content/xul/templates/src/nsXMLBinding.cpp
+++ b/content/xul/templates/src/nsXMLBinding.cpp
@@ -38,8 +38,8 @@
 #include "nsXULTemplateResultXML.h"
 #include "nsXMLBinding.h"
 
-NS_IMPL_ADDREF(nsXMLBindingSet);
-NS_IMPL_RELEASE(nsXMLBindingSet);
+NS_IMPL_ADDREF(nsXMLBindingSet)
+NS_IMPL_RELEASE(nsXMLBindingSet)
 
 nsresult
 nsXMLBindingSet::AddBinding(nsIAtom* aVar, nsIDOMXPathExpression* aExpr)
diff --git a/content/xul/templates/src/nsXMLBinding.h b/content/xul/templates/src/nsXMLBinding.h
index e0672b885f7540772322fe740a40e7d49c03b490..a304e1172c06f0715322eb2e63e459849d72c0f1 100644
--- a/content/xul/templates/src/nsXMLBinding.h
+++ b/content/xul/templates/src/nsXMLBinding.h
@@ -85,8 +85,8 @@ public:
 
 public:
 
-  nsrefcnt AddRef();
-  nsrefcnt Release();
+  NS_IMETHOD_(nsrefcnt) AddRef();
+  NS_IMETHOD_(nsrefcnt) Release();
   NS_DECL_OWNINGTHREAD
 
   /**