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();