nsITransferable* nsClipboard::GetTransferable() returns an addrefed raw pointer
r=timeless sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@149505 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
caillon%returnzero.com
2003-11-18 20:54:29 +00:00
parent 4549b66d53
commit 9bb98f6586
4 changed files with 9 additions and 14 deletions

View File

@@ -197,7 +197,6 @@ nsITransferable *nsClipboard::GetTransferable(PRInt32 aWhichClipboard)
transferable = mSelectionTransferable;
break;
}
NS_IF_ADDREF(transferable);
return transferable;
}
@@ -216,7 +215,7 @@ NS_IMETHODIMP nsClipboard::SetNativeClipboardData(PRInt32 aWhichClipboard)
// get flavor list that includes all flavors that can be written (including ones
// obtained through conversion)
nsCOMPtr<nsISupportsArray> flavorList;
nsCOMPtr<nsITransferable> transferable(getter_AddRefs(GetTransferable(aWhichClipboard)));
nsCOMPtr<nsITransferable> transferable(GetTransferable(aWhichClipboard));
// FIXME Need to make sure mTransferable has reference to selectionclipboard.
// This solves the problem with copying to an external app.