summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-05 10:57:22 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-05 10:57:22 +0100
commitff8e24990d9e6c358ce7ed77a27c10f17c5000ef (patch)
tree4b074cba486c05e694d2639ae9bd0b8f023bcf48
parentcrash on loading links from homepage when no internet connection (diff)
downloadrekonq-ff8e24990d9e6c358ce7ed77a27c10f17c5000ef.tar.xz
const char* --> QLatin1String
-rw-r--r--src/webpage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 01e98dfd..54b28e74 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -271,8 +271,8 @@ void WebPage::slotDownloadRequested(const QNetworkRequest &request)
if (destUrl.isEmpty()) return;
KIO::Job *job = KIO::file_copy(url, KUrl(destUrl), -1, KIO::Overwrite);
//job->setMetaData(metadata); //TODO: add metadata from request
- job->addMetaData("MaxCacheSize", "0"); // Don't store in http cache.
- job->addMetaData("cache", "cache"); // Use entry from cache if available.
+ job->addMetaData( QLatin1String("MaxCacheSize"), QLatin1String("0") ); // Don't store in http cache.
+ job->addMetaData( QLatin1String("cache"), QLatin1String("cache") ); // Use entry from cache if available.
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
}