mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Try a different form of casting to keep both Linux and the Mac happy
This commit is contained in:
parent
a11e05cc3d
commit
97da5a3bf6
@ -61,7 +61,7 @@ nsresult DeleteElementTxn::Do(void)
|
||||
nsAutoString elementTag="text node";
|
||||
if (element)
|
||||
element->GetTagName(elementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)mParent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)mParent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
|
@ -369,11 +369,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
|
||||
break;
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsISupports*)child;
|
||||
nsAutoString childElementTag="text node";
|
||||
if (childElement)
|
||||
childElement->GetTagName(childElementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
@ -432,11 +432,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
|
||||
break;
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsISupports*)child;
|
||||
nsAutoString childElementTag="text node";
|
||||
if (childElement)
|
||||
childElement->GetTagName(childElementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
@ -488,7 +488,7 @@ nsresult DeleteRangeTxn::BuildAncestorList(nsIDOMNode *aNode, nsISupportsArray *
|
||||
aList->AppendElement(parentAsISupports);
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
|
@ -769,7 +769,7 @@ nsresult nsEditor::CreateTxnForInsertText(const nsString & aStringToInsert,
|
||||
result = range->GetStartParent(getter_AddRefs(node));
|
||||
if ((NS_SUCCEEDED(result)) && (node))
|
||||
{
|
||||
nsCOMPtr<nsIDOMCharacterData> nodeAsText = (nsCOMPtr<nsIDOMCharacterData>)node;
|
||||
nsCOMPtr<nsIDOMCharacterData> nodeAsText = (nsISupports*)node;
|
||||
if (nodeAsText)
|
||||
{
|
||||
PRInt32 offset;
|
||||
|
@ -61,7 +61,7 @@ nsresult DeleteElementTxn::Do(void)
|
||||
nsAutoString elementTag="text node";
|
||||
if (element)
|
||||
element->GetTagName(elementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)mParent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)mParent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
|
@ -369,11 +369,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
|
||||
break;
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsISupports*)child;
|
||||
nsAutoString childElementTag="text node";
|
||||
if (childElement)
|
||||
childElement->GetTagName(childElementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
@ -432,11 +432,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
|
||||
break;
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsISupports*)child;
|
||||
nsAutoString childElementTag="text node";
|
||||
if (childElement)
|
||||
childElement->GetTagName(childElementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
@ -488,7 +488,7 @@ nsresult DeleteRangeTxn::BuildAncestorList(nsIDOMNode *aNode, nsISupportsArray *
|
||||
aList->AppendElement(parentAsISupports);
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
|
@ -769,7 +769,7 @@ nsresult nsEditor::CreateTxnForInsertText(const nsString & aStringToInsert,
|
||||
result = range->GetStartParent(getter_AddRefs(node));
|
||||
if ((NS_SUCCEEDED(result)) && (node))
|
||||
{
|
||||
nsCOMPtr<nsIDOMCharacterData> nodeAsText = (nsCOMPtr<nsIDOMCharacterData>)node;
|
||||
nsCOMPtr<nsIDOMCharacterData> nodeAsText = (nsISupports*)node;
|
||||
if (nodeAsText)
|
||||
{
|
||||
PRInt32 offset;
|
||||
|
@ -61,7 +61,7 @@ nsresult DeleteElementTxn::Do(void)
|
||||
nsAutoString elementTag="text node";
|
||||
if (element)
|
||||
element->GetTagName(elementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)mParent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)mParent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
|
@ -369,11 +369,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
|
||||
break;
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsISupports*)child;
|
||||
nsAutoString childElementTag="text node";
|
||||
if (childElement)
|
||||
childElement->GetTagName(childElementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
@ -432,11 +432,11 @@ nsresult DeleteRangeTxn::CreateTxnsToDeleteNodesBetween(nsIDOMNode *aCommonParen
|
||||
break;
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsCOMPtr<nsIDOMElement>)child;
|
||||
nsCOMPtr<nsIDOMElement> childElement = (nsISupports*)child;
|
||||
nsAutoString childElementTag="text node";
|
||||
if (childElement)
|
||||
childElement->GetTagName(childElementTag);
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
@ -488,7 +488,7 @@ nsresult DeleteRangeTxn::BuildAncestorList(nsIDOMNode *aNode, nsISupportsArray *
|
||||
aList->AppendElement(parentAsISupports);
|
||||
#ifdef NS_DEBUG
|
||||
// begin debug output
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsCOMPtr<nsIDOMElement>)parent;
|
||||
nsCOMPtr<nsIDOMElement> parentElement = (nsISupports*)parent;
|
||||
nsAutoString parentElementTag="text node";
|
||||
if (parentElement)
|
||||
parentElement->GetTagName(parentElementTag);
|
||||
|
Loading…
Reference in New Issue
Block a user