summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-03-08 09:06:05 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-03-08 09:06:05 +0000
commite05e7932f39d905f03e9c05e71c23b6aaea6e0c8 (patch)
tree164e2867f002d9e0cf152bc2038f0e0c59e1f0aa /rbutil/rbutilqt/base
parent537ee27384c030edae654cfee9b2f7af3a68cdd3 (diff)
Some HttpGet cleanup: use references when setting options.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20232 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r--rbutil/rbutilqt/base/httpget.cpp2
-rw-r--r--rbutil/rbutilqt/base/httpget.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp
index 129545d158..b226f4892a 100644
--- a/rbutil/rbutilqt/base/httpget.cpp
+++ b/rbutil/rbutilqt/base/httpget.cpp
@@ -64,7 +64,7 @@ HttpGet::HttpGet(QObject *parent)
//! @brief set cache path
// @param d new directory to use as cache path
-void HttpGet::setCache(QDir d)
+void HttpGet::setCache(const QDir& d)
{
m_cachedir = d;
bool result;
diff --git a/rbutil/rbutilqt/base/httpget.h b/rbutil/rbutilqt/base/httpget.h
index ba4cbc821e..4bf1987998 100644
--- a/rbutil/rbutilqt/base/httpget.h
+++ b/rbutil/rbutilqt/base/httpget.h
@@ -41,7 +41,7 @@ class HttpGet : public QObject
QHttp::Error error(void);
QString errorString(void);
void setFile(QFile*);
- void setCache(QDir);
+ void setCache(const QDir&);
void setCache(bool);
int httpResponse(void);
QByteArray readAll(void);
@@ -51,13 +51,13 @@ class HttpGet : public QObject
{ return m_serverTimestamp; }
void setDumbCache(bool b) //< disable checking of http header timestamp for caching
{ m_dumbCache = b; }
- static void setGlobalCache(const QDir d) //< set global cache path
+ static void setGlobalCache(const QDir& d) //< set global cache path
{ m_globalCache = d; }
- static void setGlobalProxy(const QUrl p) //< set global proxy value
+ static void setGlobalProxy(const QUrl& p) //< set global proxy value
{ m_globalProxy = p; }
static void setGlobalDumbCache(bool b) //< set "dumb" (ignore server status) caching mode
{ m_globalDumbCache = b; }
- static void setGlobalUserAgent(QString u) //< set global user agent string
+ static void setGlobalUserAgent(const QString& u) //< set global user agent string
{ m_globalUserAgent = u; }
public slots: