same old thing Linux hates comparing a nsCOMPtr to a non-OMCPtr

This commit is contained in:
rods%netscape.com 2000-02-12 17:01:35 +00:00
parent 4afe837157
commit 72ea52428d
2 changed files with 2 additions and 2 deletions

View File

@ -737,7 +737,7 @@ nsListControlFrame::GetSelectedIndexFromContent(nsIContent *aContent)
for (inx = 0; inx < numOptions; inx++) {
nsCOMPtr<nsIContent> option = getter_AddRefs(GetOptionAsContent(options, inx));
if (option) {
if (option == aContent) {
if (option.get() == aContent) {
return inx;
}
}

View File

@ -737,7 +737,7 @@ nsListControlFrame::GetSelectedIndexFromContent(nsIContent *aContent)
for (inx = 0; inx < numOptions; inx++) {
nsCOMPtr<nsIContent> option = getter_AddRefs(GetOptionAsContent(options, inx));
if (option) {
if (option == aContent) {
if (option.get() == aContent) {
return inx;
}
}