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:
Nathan Froyd 2016-10-25 10:26:31 -04:00 committed by Jacek Caban
parent 7601bd7199
commit f2f92c69fe

View File

@ -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;