summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/httpget.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-04-17 22:09:39 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-04-17 22:09:39 +0000
commitb388200519723277733a387b66806a0dc7a8b689 (patch)
treef317e4687bd2fed7cd8c7e973957f37c092cefed /rbutil/rbutilqt/base/httpget.cpp
parent64373a7a83b354595d05c496c8e45e953f2ea64a (diff)
downloadrockbox-b388200519723277733a387b66806a0dc7a8b689.tar.gz
rockbox-b388200519723277733a387b66806a0dc7a8b689.tar.bz2
rockbox-b388200519723277733a387b66806a0dc7a8b689.zip
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
Diffstat (limited to 'rbutil/rbutilqt/base/httpget.cpp')
-rw-r--r--rbutil/rbutilqt/base/httpget.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp
index 676bc64fee..23249b2765 100644
--- a/rbutil/rbutilqt/base/httpget.cpp
+++ b/rbutil/rbutilqt/base/httpget.cpp
@@ -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;
}
}