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
This commit is contained in:
@@ -395,7 +395,8 @@ NS_IMETHODIMP nsDocShell::GetInterface(const nsIID & aIID, void **aSink)
|
||||
else if (aIID.Equals(NS_GET_IID(nsIPrompt))) {
|
||||
nsCOMPtr<nsIPrompt> prompter(do_GetInterface(mTreeOwner));
|
||||
if (prompter) {
|
||||
prompter.swap((nsIPrompt*) *aSink);
|
||||
*aSink = prompter;
|
||||
NS_ADDREF((nsISupports *) * aSink);
|
||||
return NS_OK;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user