fixed for nsCOMPtr: no construction or assignment from raw COM interface pointers

This commit is contained in:
scc@netscape.com
1999-03-02 22:27:46 +00:00
parent 0968fdff16
commit 7ed0f71600
9 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ NS_IMETHODIMP InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransacti
{
// if aTransaction isa InsertTextTxn, and if the selection hasn't changed,
// then absorb it
nsCOMPtr<InsertTextTxn> otherTxn(aTransaction);
nsCOMPtr<InsertTextTxn> otherTxn( do_QueryInterface(aTransaction) );
if (otherTxn)
{
if (PR_TRUE==IsSequentialInsert(otherTxn))
@@ -112,7 +112,7 @@ NS_IMETHODIMP InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransacti
}
else
{ // the next InsertTextTxn might be inside an aggregate that we have special knowledge of
nsCOMPtr<EditAggregateTxn> otherTxn(aTransaction);
nsCOMPtr<EditAggregateTxn> otherTxn( do_QueryInterface(aTransaction) );
if (otherTxn)
{
nsCOMPtr<nsIAtom> txnName;