From ff8e24990d9e6c358ce7ed77a27c10f17c5000ef Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 5 Nov 2009 10:57:22 +0100 Subject: const char* --> QLatin1String --- src/webpage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.1