Skip to content

Commit

Permalink
Silence Wawrning (flutter#4122)
Browse files Browse the repository at this point in the history
Follow-up to flutter#4110
  • Loading branch information
goderbauer authored Sep 19, 2017
1 parent e58c2dc commit 773dfb5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ - (NSInteger)indexOfAccessibilityElement:(id)element {
std::vector<SemanticsObject*>* children = [_semanticsObject children];
for (size_t i = 0; i < children->size(); i++) {
SemanticsObject* child = (*children)[i];
if (![child hasChildren] && child == element ||
[child hasChildren] && [child accessibilityContainer] == element)
if ((![child hasChildren] && child == element) ||
([child hasChildren] && [child accessibilityContainer] == element))
return i + 1;
}
return NSNotFound;
Expand Down

0 comments on commit 773dfb5

Please sign in to comment.