Change the transactions to have non-owning pointers to the editor.

This commit is contained in:
sfraser%netscape.com 1999-05-28 00:16:55 +00:00
Родитель 7e7e1b3a66
Коммит 7e9989b7b9
8 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -37,7 +37,7 @@ NS_IMETHODIMP JoinElementTxn::Init(nsIEditor *aEditor,
nsIDOMNode *aLeftNode,
nsIDOMNode *aRightNode)
{
mEditor = do_QueryInterface(aEditor);
mEditor = aEditor;
mLeftNode = do_QueryInterface(aLeftNode);
mRightNode = do_QueryInterface(aRightNode);
mOffset=0;

Просмотреть файл

@ -87,7 +87,7 @@ protected:
/** the parent node containing mLeftNode and mRightNode */
nsCOMPtr<nsIDOMNode> mParent;
nsCOMPtr<nsIEditor> mEditor;
nsIEditor* mEditor;
friend class TransactionFactory;

Просмотреть файл

@ -39,7 +39,7 @@ NS_IMETHODIMP SplitElementTxn::Init(nsIEditor *aEditor,
nsIDOMNode *aNode,
PRInt32 aOffset)
{
mEditor = do_QueryInterface(aEditor);
mEditor = aEditor;
mExistingRightNode = do_QueryInterface(aNode);
mOffset = aOffset;
return NS_OK;

Просмотреть файл

@ -85,7 +85,7 @@ protected:
/** the parent shared by mExistingRightNode and mNewLeftNode */
nsCOMPtr<nsIDOMNode> mParent;
nsCOMPtr<nsIEditor> mEditor;
nsIEditor* mEditor;
friend class TransactionFactory;

Просмотреть файл

@ -37,7 +37,7 @@ NS_IMETHODIMP JoinElementTxn::Init(nsIEditor *aEditor,
nsIDOMNode *aLeftNode,
nsIDOMNode *aRightNode)
{
mEditor = do_QueryInterface(aEditor);
mEditor = aEditor;
mLeftNode = do_QueryInterface(aLeftNode);
mRightNode = do_QueryInterface(aRightNode);
mOffset=0;

Просмотреть файл

@ -87,7 +87,7 @@ protected:
/** the parent node containing mLeftNode and mRightNode */
nsCOMPtr<nsIDOMNode> mParent;
nsCOMPtr<nsIEditor> mEditor;
nsIEditor* mEditor;
friend class TransactionFactory;

Просмотреть файл

@ -39,7 +39,7 @@ NS_IMETHODIMP SplitElementTxn::Init(nsIEditor *aEditor,
nsIDOMNode *aNode,
PRInt32 aOffset)
{
mEditor = do_QueryInterface(aEditor);
mEditor = aEditor;
mExistingRightNode = do_QueryInterface(aNode);
mOffset = aOffset;
return NS_OK;

Просмотреть файл

@ -85,7 +85,7 @@ protected:
/** the parent shared by mExistingRightNode and mNewLeftNode */
nsCOMPtr<nsIDOMNode> mParent;
nsCOMPtr<nsIEditor> mEditor;
nsIEditor* mEditor;
friend class TransactionFactory;