variant-comptr
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 67 5fcbda874b5844dafeed28ff6ad7f9cb500afea8
permissions -rw-r--r--
State as of now

diff --git a/xpcom/ds/nsHashPropertyBag.cpp b/xpcom/ds/nsHashPropertyBag.cpp
--- a/xpcom/ds/nsHashPropertyBag.cpp
+++ b/xpcom/ds/nsHashPropertyBag.cpp
@@ -215,7 +215,7 @@ NS_IMETHODIMP \
 NS_IMETHODIMP \
 nsHashPropertyBag::SetPropertyAs ## Name (const nsAString & prop, Type value) \
 { \
-    nsCOMPtr<nsIWritableVariant> var = new nsVariant(); \
+    nsIWritableVariant* var = new nsVariant(); \
     if (!var) \
         return NS_ERROR_OUT_OF_MEMORY; \
     var->SetAs ## Name(value); \