Fix nsCOMPtr casting build bustage

This commit is contained in:
akkana%netscape.com 1999-01-21 19:31:57 +00:00
parent 49074672b7
commit 0e04d56d20
8 changed files with 23 additions and 23 deletions

View File

@ -51,11 +51,11 @@ nsresult DeleteElementTxn::Do(void)
return NS_ERROR_NULL_POINTER;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> element=mElement;
nsCOMPtr<nsIDOMElement> element=mElement.get();
nsAutoString elementTag="text node";
if (element)
element->GetTagName(elementTag);
nsCOMPtr<nsIDOMElement> parentElement=mParent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)mParent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);

View File

@ -364,11 +364,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
break;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> childElement=child;
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
nsAutoString childElementTag="text node";
if (childElement)
childElement->GetTagName(childElementTag);
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);
@ -426,11 +426,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
break;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> childElement=child;
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
nsAutoString childElementTag="text node";
if (childElement)
childElement->GetTagName(childElementTag);
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);
@ -481,7 +481,7 @@ nsresult DeleteRangeTxn::BuildAncestorList(nsIDOMNode *aNode, nsISupportsArray *
aList->AppendElement(parentAsISupports);
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);

View File

@ -718,7 +718,7 @@ nsresult nsEditor::InsertText(const nsString& aStringToInsert)
result = range->GetStartParent(getter_AddRefs(node));
if ((NS_SUCCEEDED(result)) && (node))
{
nsCOMPtr<nsIDOMCharacterData> nodeAsText = node;
nsCOMPtr<nsIDOMCharacterData> nodeAsText = (nsCOMPtr<nsIDOMCharacterData>)node;
if (nodeAsText)
{
PRInt32 offset;

View File

@ -51,11 +51,11 @@ nsresult DeleteElementTxn::Do(void)
return NS_ERROR_NULL_POINTER;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> element=mElement;
nsCOMPtr<nsIDOMElement> element=mElement.get();
nsAutoString elementTag="text node";
if (element)
element->GetTagName(elementTag);
nsCOMPtr<nsIDOMElement> parentElement=mParent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)mParent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);

View File

@ -364,11 +364,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
break;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> childElement=child;
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
nsAutoString childElementTag="text node";
if (childElement)
childElement->GetTagName(childElementTag);
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);
@ -426,11 +426,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
break;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> childElement=child;
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
nsAutoString childElementTag="text node";
if (childElement)
childElement->GetTagName(childElementTag);
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);
@ -481,7 +481,7 @@ nsresult DeleteRangeTxn::BuildAncestorList(nsIDOMNode *aNode, nsISupportsArray *
aList->AppendElement(parentAsISupports);
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);

View File

@ -718,7 +718,7 @@ nsresult nsEditor::InsertText(const nsString& aStringToInsert)
result = range->GetStartParent(getter_AddRefs(node));
if ((NS_SUCCEEDED(result)) && (node))
{
nsCOMPtr<nsIDOMCharacterData> nodeAsText = node;
nsCOMPtr<nsIDOMCharacterData> nodeAsText = (nsCOMPtr<nsIDOMCharacterData>)node;
if (nodeAsText)
{
PRInt32 offset;

View File

@ -51,11 +51,11 @@ nsresult DeleteElementTxn::Do(void)
return NS_ERROR_NULL_POINTER;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> element=mElement;
nsCOMPtr<nsIDOMElement> element=mElement.get();
nsAutoString elementTag="text node";
if (element)
element->GetTagName(elementTag);
nsCOMPtr<nsIDOMElement> parentElement=mParent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)mParent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);

View File

@ -364,11 +364,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
break;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> childElement=child;
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
nsAutoString childElementTag="text node";
if (childElement)
childElement->GetTagName(childElementTag);
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);
@ -426,11 +426,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
break;
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> childElement=child;
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
nsAutoString childElementTag="text node";
if (childElement)
childElement->GetTagName(childElementTag);
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);
@ -481,7 +481,7 @@ nsresult DeleteRangeTxn::BuildAncestorList(nsIDOMNode *aNode, nsISupportsArray *
aList->AppendElement(parentAsISupports);
#ifdef NS_DEBUG
// begin debug output
nsCOMPtr<nsIDOMElement> parentElement=parent;
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
nsAutoString parentElementTag="text node";
if (parentElement)
parentElement->GetTagName(parentElementTag);