Simplify a debug output case and fix a gcc warning (as reported in FS#10124, only appears on new gcc versions).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20725 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-04-17 22:09:39 +00:00
parent 64373a7a83
commit b388200519

View file

@ -258,12 +258,13 @@ void HttpGet::getFileFinish()
return;
}
else {
if(cachefile.isReadable())
qDebug() << "[HTTP] Cache: outdated, timestamp:" << cachefile.lastModified();
qDebug() << "[HTTP] Cache: caching as" << m_cachefile;
// unlink old cache file
if(cachefile.isReadable())
if(cachefile.isReadable()) {
QFile(m_cachefile).remove();
qDebug() << "[HTTP] Cache: outdated, timestamp:"
<< cachefile.lastModified();
}
qDebug() << "[HTTP] Cache: caching as" << m_cachefile;
}
}