mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
same old thing Linux hates comparing a nsCOMPtr to a non-OMCPtr
This commit is contained in:
parent
4afe837157
commit
72ea52428d
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user