Try a different form of casting to keep both Linux and the Mac happy

This commit is contained in:
akkana%netscape.com 1999-01-21 21:10:12 +00:00
parent a11e05cc3d
commit 97da5a3bf6
8 changed files with 20 additions and 20 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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);