Fixed compilation warnings in release build

This commit is contained in:
Slava Monich 2015-06-28 14:49:54 +03:00
parent f69b1999dc
commit 9c910a90c2
2 changed files with 3 additions and 5 deletions

View file

@ -122,7 +122,7 @@ QByteArray BooksImportModel::Task::calculateFileHash(QString aPath)
QByteArray result; QByteArray result;
QFile file(aPath); QFile file(aPath);
if (file.open(QIODevice::ReadOnly)) { if (file.open(QIODevice::ReadOnly)) {
qint64 len; qint64 len = 0;
QCryptographicHash hash(QCryptographicHash::Md5); QCryptographicHash hash(QCryptographicHash::Md5);
hash.reset(); hash.reset();
if (!iBuf) iBuf = new char[iBufSize]; if (!iBuf) iBuf = new char[iBufSize];

View file

@ -446,16 +446,14 @@ void BooksPageWidget::updateSize()
void BooksPageWidget::onWidthChanged() void BooksPageWidget::onWidthChanged()
{ {
const int w = width(); HDEBUG((int)width());
HDEBUG(w);
// Width change will probably be followed by height change // Width change will probably be followed by height change
iResizeTimer->start(); iResizeTimer->start();
} }
void BooksPageWidget::onHeightChanged() void BooksPageWidget::onHeightChanged()
{ {
const int h = height(); HDEBUG((int)height());
HDEBUG(h);
if (iResizeTimer->isActive()) { if (iResizeTimer->isActive()) {
// Height is usually changed after width, repaint right away // Height is usually changed after width, repaint right away
iResizeTimer->stop(); iResizeTimer->stop();