Reinstate buster's changes, with a fix for the nsCOMPtr problem.

This commit is contained in:
sfraser%netscape.com 1999-01-15 00:03:41 +00:00
parent e010fff2cc
commit f0793df5ed
6 changed files with 24 additions and 9 deletions

View File

@ -57,7 +57,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
// set out param default value
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
/* XXX: Doesn't compile on Mac. While the hell not???
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
{
// if aTransaction isa InsertTextTxn, absorb it
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
}
*aDidMerge = PR_TRUE;
}
*/
return NS_OK;
}

View File

@ -41,6 +41,13 @@ public:
PRUint32 aOffset,
const nsString& aStringToInsert);
private:
// default ctor so that nsCOMPtr is happy
InsertTextTxn() : EditTxn(nsnull) {}
public:
virtual nsresult Do(void);
virtual nsresult Undo(void);

View File

@ -57,7 +57,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
// set out param default value
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
/* XXX: Doesn't compile on Mac. While the hell not???
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
{
// if aTransaction isa InsertTextTxn, absorb it
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
}
*aDidMerge = PR_TRUE;
}
*/
return NS_OK;
}

View File

@ -41,6 +41,13 @@ public:
PRUint32 aOffset,
const nsString& aStringToInsert);
private:
// default ctor so that nsCOMPtr is happy
InsertTextTxn() : EditTxn(nsnull) {}
public:
virtual nsresult Do(void);
virtual nsresult Undo(void);

View File

@ -57,7 +57,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
// set out param default value
if (nsnull!=aDidMerge)
*aDidMerge=PR_FALSE;
/* XXX: Doesn't compile on Mac. While the hell not???
if ((nsnull!=aDidMerge) && (nsnull!=aTransaction))
{
// if aTransaction isa InsertTextTxn, absorb it
@ -71,7 +70,6 @@ nsresult InsertTextTxn::Merge(PRBool *aDidMerge, nsITransaction *aTransaction)
}
*aDidMerge = PR_TRUE;
}
*/
return NS_OK;
}

View File

@ -41,6 +41,13 @@ public:
PRUint32 aOffset,
const nsString& aStringToInsert);
private:
// default ctor so that nsCOMPtr is happy
InsertTextTxn() : EditTxn(nsnull) {}
public:
virtual nsresult Do(void);
virtual nsresult Undo(void);