From b431e666a0c19dc9b9b417e2c5467f770b87a902 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Wed, 26 May 1999 22:30:50 +0000 Subject: [PATCH] Fixed missing do_QueryInterface that busted Linux build git-svn-id: svn://10.0.0.236/trunk@32760 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/nsHTMLEditor.cpp | 2 +- mozilla/editor/libeditor/html/nsHTMLEditor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/base/nsHTMLEditor.cpp b/mozilla/editor/base/nsHTMLEditor.cpp index 97d0b61c608..dd2782877bc 100644 --- a/mozilla/editor/base/nsHTMLEditor.cpp +++ b/mozilla/editor/base/nsHTMLEditor.cpp @@ -1758,7 +1758,7 @@ nsHTMLEditor::GetSelectedElement(const nsString& aTagName, nsIDOMElement** aRetu if (image) { nsCOMPtr parent; - nsCOMPtr current = selectedElement; + nsCOMPtr current = do_QueryInterface(selectedElement); PRBool notDone = PR_TRUE; do { result = current->GetParentNode(getter_AddRefs(parent)); diff --git a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp index 97d0b61c608..dd2782877bc 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditor.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditor.cpp @@ -1758,7 +1758,7 @@ nsHTMLEditor::GetSelectedElement(const nsString& aTagName, nsIDOMElement** aRetu if (image) { nsCOMPtr parent; - nsCOMPtr current = selectedElement; + nsCOMPtr current = do_QueryInterface(selectedElement); PRBool notDone = PR_TRUE; do { result = current->GetParentNode(getter_AddRefs(parent));