cppcheck 2

This commit is contained in:
jpirnay
2026-05-12 21:02:29 +02:00
parent 7d16681bde
commit 8625b7353f
@@ -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;