mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1312543 - remove bogus comparison in ia2Accessible.cpp; r=surkov
This comparison is confused, as aNRanges is an out argument; we only care about non-nullness of the pointer. Additionally, recent versions of clang consider non-equality comparisons with pointer types an error. MozReview-Commit-ID: 8lXeCwP6Lz6
This commit is contained in:
parent
7601bd7199
commit
f2f92c69fe
@ -759,7 +759,7 @@ ia2Accessible::get_selectionRanges(IA2Range** aRanges,
|
||||
{
|
||||
A11Y_TRYBLOCK_BEGIN
|
||||
|
||||
if (!aRanges || !aNRanges || aNRanges <= 0)
|
||||
if (!aRanges || !aNRanges)
|
||||
return E_INVALIDARG;
|
||||
|
||||
*aNRanges = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user