nsISVGValueUtils-comptr-macros
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 133 9bc5a4e8def910417bf55c289395830451d295b1
permissions -rw-r--r--
State as of now

diff --git a/content/svg/content/src/nsISVGValueUtils.h b/content/svg/content/src/nsISVGValueUtils.h
--- a/content/svg/content/src/nsISVGValueUtils.h
+++ b/content/svg/content/src/nsISVGValueUtils.h
@@ -47,7 +47,7 @@
 #define NS_ADD_SVGVALUE_OBSERVER(value)                               \
   PR_BEGIN_MACRO                                                      \
   {                                                                   \
-    nsCOMPtr<nsISVGValue> v = do_QueryInterface(value);               \
+    nsISVGValue* v = do_QueryInterface(value);                        \
     NS_ASSERTION(v, "can't find nsISVGValue interface on " #value );  \
     if (v)                                                            \
       v->AddObserver(this);                                           \
@@ -62,7 +62,7 @@
 #define NS_REMOVE_SVGVALUE_OBSERVER(value)                            \
   PR_BEGIN_MACRO                                                      \
   {                                                                   \
-    nsCOMPtr<nsISVGValue> v = do_QueryInterface(value);               \
+    nsISVGValue* v = do_QueryInterface(value);                        \
     NS_ASSERTION(v, "can't find nsISVGValue interface on " #value );  \
     if (v)                                                            \
       v->RemoveObserver(this);                                        \