From b388200519723277733a387b66806a0dc7a8b689 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Fri, 17 Apr 2009 22:09:39 +0000 Subject: 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 --- rbutil/rbutilqt/base/httpget.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'rbutil/rbutilqt/base') 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; } } -- cgit v1.2.3