diff options
-rw-r--r-- | rbutil/rbutilqt/base/httpget.cpp | 2 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/httpget.h | 8 |
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) | |||
64 | 64 | ||
65 | //! @brief set cache path | 65 | //! @brief set cache path |
66 | // @param d new directory to use as cache path | 66 | // @param d new directory to use as cache path |
67 | void HttpGet::setCache(QDir d) | 67 | void HttpGet::setCache(const QDir& d) |
68 | { | 68 | { |
69 | m_cachedir = d; | 69 | m_cachedir = d; |
70 | bool result; | 70 | 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 | |||
41 | QHttp::Error error(void); | 41 | QHttp::Error error(void); |
42 | QString errorString(void); | 42 | QString errorString(void); |
43 | void setFile(QFile*); | 43 | void setFile(QFile*); |
44 | void setCache(QDir); | 44 | void setCache(const QDir&); |
45 | void setCache(bool); | 45 | void setCache(bool); |
46 | int httpResponse(void); | 46 | int httpResponse(void); |
47 | QByteArray readAll(void); | 47 | QByteArray readAll(void); |
@@ -51,13 +51,13 @@ class HttpGet : public QObject | |||
51 | { return m_serverTimestamp; } | 51 | { return m_serverTimestamp; } |
52 | void setDumbCache(bool b) //< disable checking of http header timestamp for caching | 52 | void setDumbCache(bool b) //< disable checking of http header timestamp for caching |
53 | { m_dumbCache = b; } | 53 | { m_dumbCache = b; } |
54 | static void setGlobalCache(const QDir d) //< set global cache path | 54 | static void setGlobalCache(const QDir& d) //< set global cache path |
55 | { m_globalCache = d; } | 55 | { m_globalCache = d; } |
56 | static void setGlobalProxy(const QUrl p) //< set global proxy value | 56 | static void setGlobalProxy(const QUrl& p) //< set global proxy value |
57 | { m_globalProxy = p; } | 57 | { m_globalProxy = p; } |
58 | static void setGlobalDumbCache(bool b) //< set "dumb" (ignore server status) caching mode | 58 | static void setGlobalDumbCache(bool b) //< set "dumb" (ignore server status) caching mode |
59 | { m_globalDumbCache = b; } | 59 | { m_globalDumbCache = b; } |
60 | static void setGlobalUserAgent(QString u) //< set global user agent string | 60 | static void setGlobalUserAgent(const QString& u) //< set global user agent string |
61 | { m_globalUserAgent = u; } | 61 | { m_globalUserAgent = u; } |
62 | 62 | ||
63 | public slots: | 63 | public slots: |