From da2e03ec5ab81c77220229df5efbdccc96b0c0e5 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 23 Dec 2019 10:59:16 +0100 Subject: [PATCH] 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 --- generators/tiff/generator_tiff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/tiff/generator_tiff.cpp b/generators/tiff/generator_tiff.cpp index e589a0be2..3ed6bee96 100644 --- a/generators/tiff/generator_tiff.cpp +++ b/generators/tiff/generator_tiff.cpp @@ -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;