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

@ -35,12 +35,19 @@ class nsIDOMCharacterData;
class InsertTextTxn : public EditTxn
{
public:
InsertTextTxn(nsEditor *aEditor,
nsIDOMCharacterData *aElement,
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

@ -35,12 +35,19 @@ class nsIDOMCharacterData;
class InsertTextTxn : public EditTxn
{
public:
InsertTextTxn(nsEditor *aEditor,
nsIDOMCharacterData *aElement,
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

@ -35,12 +35,19 @@ class nsIDOMCharacterData;
class InsertTextTxn : public EditTxn
{
public:
InsertTextTxn(nsEditor *aEditor,
nsIDOMCharacterData *aElement,
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);