trivial fix to make sure we're storing an nsIHTMLEditor result in an

nsCOMPtr<nsIHTMLEditor> variable.
This commit is contained in:
buster%netscape.com 1999-08-09 19:37:18 +00:00
Родитель 19d4959fb5
Коммит 9624f91fa7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -168,7 +168,7 @@ nsGfxTextControlFrame::InitTextControl()
mDocObserver->SetFrame(this); mDocObserver->SetFrame(this);
NS_ADDREF(mDocObserver); NS_ADDREF(mDocObserver);
nsCOMPtr<nsIEditor> theEditor; nsCOMPtr<nsIHTMLEditor> theEditor;
result = nsComponentManager::CreateInstance(kHTMLEditorCID, result = nsComponentManager::CreateInstance(kHTMLEditorCID,
nsnull, nsnull,
nsIHTMLEditor::GetIID(), getter_AddRefs(theEditor)); nsIHTMLEditor::GetIID(), getter_AddRefs(theEditor));