summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/httpget.h
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/httpget.h
parent537ee27384c030edae654cfee9b2f7af3a68cdd3 (diff)
downloadrockbox-e05e7932f39d905f03e9c05e71c23b6aaea6e0c8.tar.gz
rockbox-e05e7932f39d905f03e9c05e71c23b6aaea6e0c8.zip
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/httpget.h')
-rw-r--r--rbutil/rbutilqt/base/httpget.h8
1 files changed, 4 insertions, 4 deletions
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: