From 9c910a90c20098657115e0060a3d2f1138e71a8b Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 28 Jun 2015 14:49:54 +0300 Subject: [PATCH] Fixed compilation warnings in release build --- app/src/BooksImportModel.cpp | 2 +- app/src/BooksPageWidget.cpp | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/BooksImportModel.cpp b/app/src/BooksImportModel.cpp index 01b5dc7..0c43e1f 100644 --- a/app/src/BooksImportModel.cpp +++ b/app/src/BooksImportModel.cpp @@ -122,7 +122,7 @@ QByteArray BooksImportModel::Task::calculateFileHash(QString aPath) QByteArray result; QFile file(aPath); if (file.open(QIODevice::ReadOnly)) { - qint64 len; + qint64 len = 0; QCryptographicHash hash(QCryptographicHash::Md5); hash.reset(); if (!iBuf) iBuf = new char[iBufSize]; diff --git a/app/src/BooksPageWidget.cpp b/app/src/BooksPageWidget.cpp index c1ff4e8..2040400 100644 --- a/app/src/BooksPageWidget.cpp +++ b/app/src/BooksPageWidget.cpp @@ -446,16 +446,14 @@ void BooksPageWidget::updateSize() void BooksPageWidget::onWidthChanged() { - const int w = width(); - HDEBUG(w); + HDEBUG((int)width()); // Width change will probably be followed by height change iResizeTimer->start(); } void BooksPageWidget::onHeightChanged() { - const int h = height(); - HDEBUG(h); + HDEBUG((int)height()); if (iResizeTimer->isActive()) { // Height is usually changed after width, repaint right away iResizeTimer->stop();