Use .get() when comparing native ptr and nsCOMPtr.

This commit is contained in:
rjc%netscape.com 2000-03-25 09:52:48 +00:00
Родитель 9a35bb1f85
Коммит 185bb63100
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -3398,8 +3398,8 @@ nsBookmarksService::GetAllCmds(nsIRDFResource* source,
getFolderViaHint(kNC_PersonalToolbarFolder, getter_AddRefs(personalToolbarFolder));
cmdArray->AppendElement(kNC_BookmarkSeparator);
if (source != newBookmarkFolder) cmdArray->AppendElement(kNC_BookmarkCommand_SetNewBookmarkFolder);
if (source != personalToolbarFolder) cmdArray->AppendElement(kNC_BookmarkCommand_SetPersonalToolbarFolder);
if (source != newBookmarkFolder.get()) cmdArray->AppendElement(kNC_BookmarkCommand_SetNewBookmarkFolder);
if (source != personalToolbarFolder.get()) cmdArray->AppendElement(kNC_BookmarkCommand_SetPersonalToolbarFolder);
}
// always append a separator last (due to aggregation of commands from multiple datasources)