Convert correct usage of |nsCOMPtr<T>::operator&| to use |address_of| since the operator& will soon become private. b=59414 r=disttsc@bart.nl sr=waterson@netscape.com

This commit is contained in:
dbaron%fas.harvard.edu 2001-01-10 04:12:05 +00:00
Родитель 66680e0a0e
Коммит b95efc763f
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -254,7 +254,7 @@ nsHTMLEditor::GetFirstRow(nsIDOMElement* aTableElement, nsIDOMElement* &aRow)
if (!tableNode) return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIDOMNode> tableChild;
res = GetFirstEditableChild(tableNode, &tableChild);
res = GetFirstEditableChild(tableNode, address_of(tableChild));
if (NS_FAILED(res)) return res;
while (tableChild)
@ -283,7 +283,7 @@ nsHTMLEditor::GetFirstRow(nsIDOMElement* aTableElement, nsIDOMElement* &aRow)
{
nsCOMPtr<nsIDOMNode> rowNode;
// All children should be rows
res = GetFirstEditableChild(tableChild, &rowNode);
res = GetFirstEditableChild(tableChild, address_of(rowNode));
if (NS_FAILED(res)) return res;
if (rowNode && IsRowNode(rowNode))
{

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

@ -254,7 +254,7 @@ nsHTMLEditor::GetFirstRow(nsIDOMElement* aTableElement, nsIDOMElement* &aRow)
if (!tableNode) return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIDOMNode> tableChild;
res = GetFirstEditableChild(tableNode, &tableChild);
res = GetFirstEditableChild(tableNode, address_of(tableChild));
if (NS_FAILED(res)) return res;
while (tableChild)
@ -283,7 +283,7 @@ nsHTMLEditor::GetFirstRow(nsIDOMElement* aTableElement, nsIDOMElement* &aRow)
{
nsCOMPtr<nsIDOMNode> rowNode;
// All children should be rows
res = GetFirstEditableChild(tableChild, &rowNode);
res = GetFirstEditableChild(tableChild, address_of(rowNode));
if (NS_FAILED(res)) return res;
if (rowNode && IsRowNode(rowNode))
{