From 4e0337a1be3eac0cc550d68340b174d552aecc09 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 23 Dec 2019 10:57:19 +0100 Subject: [PATCH] make clang-tidy a bit happier Since translate takes doubles, divide by 2.0 instead of 2, it doesn't really make a different since m_margin is 16 anyway --- ui/thumbnaillist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/thumbnaillist.cpp b/ui/thumbnaillist.cpp index 2456dd845..d32ed3d6d 100644 --- a/ui/thumbnaillist.cpp +++ b/ui/thumbnaillist.cpp @@ -944,7 +944,7 @@ void ThumbnailWidget::paint( QPainter &p, const QRect &_clipRect ) } // draw the page using the shared PagePainter class - p.translate( m_margin/2, m_margin/2 ); + p.translate( m_margin/2.0, m_margin/2.0 ); clipRect.translate( -m_margin/2, -m_margin/2 ); clipRect = clipRect.intersected( QRect( 0, 0, m_pixmapWidth, m_pixmapHeight ) ); if ( clipRect.isValid() )