From 2ac7d9b285d454402c86c33667062e1e8ccc8a67 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Wed, 8 Dec 2004 18:02:40 +0000 Subject: [PATCH] Fix build bustage (swap() called on a cast pointer makes some compilers unhappy, apparently....). Bug 272471. git-svn-id: svn://10.0.0.236/trunk@166437 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 31822ec53ce..f1be097d32b 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -395,7 +395,8 @@ NS_IMETHODIMP nsDocShell::GetInterface(const nsIID & aIID, void **aSink) else if (aIID.Equals(NS_GET_IID(nsIPrompt))) { nsCOMPtr prompter(do_GetInterface(mTreeOwner)); if (prompter) { - prompter.swap((nsIPrompt*) *aSink); + *aSink = prompter; + NS_ADDREF((nsISupports *) * aSink); return NS_OK; } else