xpctest_echo-GET_CALL_CONTEXT-macrofixup
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 130 d12137ef66ee0e94446556b0a863afdc6d93f0dd
permissions -rw-r--r--
State as of now

diff --git a/js/src/xpconnect/tests/components/xpctest_echo.cpp b/js/src/xpconnect/tests/components/xpctest_echo.cpp
--- a/js/src/xpconnect/tests/components/xpctest_echo.cpp
+++ b/js/src/xpconnect/tests/components/xpctest_echo.cpp
@@ -427,7 +427,7 @@ xpctestEcho::SetAString(const char * aAS
 #define GET_CALL_CONTEXT \
   nsresult rv; \
   nsAXPCNativeCallContext *cc = nsnull; \
-  nsCOMPtr<nsIXPConnect> xpc(do_GetService(nsIXPConnect::GetCID(), &rv)); \
+  nsIXPConnect* xpc(do_GetService(nsIXPConnect::GetCID(), &rv)); \
   if(NS_SUCCEEDED(rv)) \
     rv = xpc->GetCurrentNativeCallContext(&cc) /* no ';' */