Fix warning generated by clang in OCR module
Created by: VolkMilit
Fix two warning generated by newer (?) clang:
- std::vector::size returns unsigned long, but QList::reserve has an int argument; solution: using static_cast
- Use range-based for loop instead of old-style for (int i = 0; ...)