[ios] Fixed warning.

This commit is contained in:
VladiMihaylenko 2016-02-20 16:37:07 +03:00 committed by Sergey Yershov
parent 4454055fd7
commit d5526f3cb5
2 changed files with 4 additions and 8 deletions

View file

@ -91,15 +91,10 @@ vector<NSRange> separatorsLocationInString(NSString * str)
{
searchRange.length = str.length - searchRange.location;
NSRange const foundRange = [str rangeOfString:kMWMCuisineSeparator options:NSCaseInsensitiveSearch range:searchRange];
if (foundRange.location != NSNotFound)
{
searchRange.location = foundRange.location + foundRange.length;
r.push_back(foundRange);
}
else
{
if (foundRange.location == NSNotFound)
break;
}
searchRange.location = foundRange.location + foundRange.length;
r.push_back(foundRange);
}
return r;
}

View file

@ -59,6 +59,7 @@
pivot += m2::PointF(self.leftBound, -self.bottomBound) * self.visualScale;
break;
case gui::WIDGET_SCALE_LABEL:
case gui::WIDGET_CHOOSE_POSITION_MARK:
break;
}
layout[w] = pivot;