Fixed compilation warnings in release build
This commit is contained in:
parent
f69b1999dc
commit
9c910a90c2
2 changed files with 3 additions and 5 deletions
|
@ -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];
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue