diff --git a/js/src/xpconnect/sample/xpcsample1.cpp b/js/src/xpconnect/sample/xpcsample1.cpp index 4ec1c77fc72..d0374047f79 100644 --- a/js/src/xpconnect/sample/xpcsample1.cpp +++ b/js/src/xpconnect/sample/xpcsample1.cpp @@ -244,8 +244,8 @@ nsXPCSample_HookerUpper::CreateSampleObjectAtGlobalScope(const char *name, PRInt return NS_ERROR_FAILURE; // get the xpconnect native call context - nsCOMPtr callContext; - xpc->GetCurrentNativeCallContext(getter_AddRefs(callContext)); + nsAXPCNativeCallContext *callContext = nsnull; + xpc->GetCurrentNativeCallContext(&callContext); if(!callContext) return NS_ERROR_FAILURE; diff --git a/js/src/xpconnect/tools/src/nsXPCToolsCompiler.cpp b/js/src/xpconnect/tools/src/nsXPCToolsCompiler.cpp index 824764d972a..1912a401bde 100644 --- a/js/src/xpconnect/tools/src/nsXPCToolsCompiler.cpp +++ b/js/src/xpconnect/tools/src/nsXPCToolsCompiler.cpp @@ -93,8 +93,8 @@ NS_IMETHODIMP nsXPCToolsCompiler::CompileFile(nsILocalFile *aFile, PRBool strict return NS_ERROR_FAILURE; // get the xpconnect native call context - nsCOMPtr callContext; - xpc->GetCurrentNativeCallContext(getter_AddRefs(callContext)); + nsAXPCNativeCallContext *callContext = nsnull; + xpc->GetCurrentNativeCallContext(&callContext); if(!callContext) return NS_ERROR_FAILURE;