mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fix nsCOMPtr casting build bustage
This commit is contained in:
parent
49074672b7
commit
0e04d56d20
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user