From 8625b7353f0ee0eeeda0f9f52bbbed13f1fd6faa Mon Sep 17 00:00:00 2001 From: jpirnay Date: Tue, 12 May 2026 21:02:29 +0200 Subject: [PATCH] cppcheck 2 --- src/activities/reader/FinishedBookActivity.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/activities/reader/FinishedBookActivity.cpp b/src/activities/reader/FinishedBookActivity.cpp index 9a738b58..6e20d07a 100644 --- a/src/activities/reader/FinishedBookActivity.cpp +++ b/src/activities/reader/FinishedBookActivity.cpp @@ -603,7 +603,6 @@ void FinishedBookActivity::render(RenderLock&&) { if (nextBookAvailable_) { int actualCoverWidth = 0; - int actualCoverHeight = 0; int previewTextX = previewX; if (!nextBookCoverPath_.empty()) { @@ -612,7 +611,7 @@ void FinishedBookActivity::render(RenderLock&&) { if (coverFile) { Bitmap bmp(coverFile); if (bmp.parseHeaders() == BmpReaderError::Ok && bmp.getWidth() > 0 && bmp.getHeight() > 0) { - actualCoverHeight = previewHeight; + int actualCoverHeight = previewHeight; actualCoverWidth = bmp.getWidth() * actualCoverHeight / bmp.getHeight(); if (actualCoverWidth > previewWidth) { actualCoverWidth = previewWidth;