mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 14:44:26 +00:00
Adding do_QueryInterface() to fix Solaris/nxCOMPtr ambiguity.
This commit is contained in:
parent
a35c96fc59
commit
20e03d42ad
@ -572,7 +572,7 @@ nsresult nsTextEditor::SetTextPropertiesForNode(nsIDOMNode *aNode,
|
||||
}
|
||||
else
|
||||
{
|
||||
newTextNode = aNode;
|
||||
newTextNode = do_QueryInterface(aNode);
|
||||
}
|
||||
if (NS_SUCCEEDED(result))
|
||||
{
|
||||
@ -626,7 +626,7 @@ nsTextEditor::SetTextPropertiesForNodesWithSameParent(nsIDOMNode *aStartNode,
|
||||
result = mEditor->SplitNode(aEndNode, aEndOffset, getter_AddRefs(newRightTextNode));
|
||||
}
|
||||
else {
|
||||
newRightTextNode = aEndNode;
|
||||
newRightTextNode = do_QueryInterface(aEndNode);
|
||||
}
|
||||
if (NS_SUCCEEDED(result))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user