Make clang-tidy happy

We know we will never have more than t_dir pages but since QList::count
can be an int, make the index variable also be int and let clang-tidy be
happy
This commit is contained in:
Albert Astals Cid 2019-12-23 10:59:16 +01:00
parent 5f42e08e25
commit da2e03ec5a

View file

@ -379,7 +379,7 @@ bool TIFFGenerator::print( QPrinter& printer )
document()->currentPage() + 1,
document()->bookmarkedPageList() );
for ( tdir_t i = 0; i < pageList.count(); ++i )
for ( int i = 0; i < pageList.count(); ++i )
{
if ( !TIFFSetDirectory( d->tiff, mapPage( pageList[i] - 1 ) ) )
continue;