diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/http_request.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/http_request.h b/protocols/SkypeWeb/src/http_request.h index d754524f55..532c8cf61c 100644 --- a/protocols/SkypeWeb/src/http_request.h +++ b/protocols/SkypeWeb/src/http_request.h @@ -53,7 +53,8 @@ struct FORMAT_VALUE : public VALUE class HttpRequest : public NETLIBHTTPREQUEST, public MZeroedObject
{
-private:
+ HttpRequest& operator=(const HttpRequest&); // to prevent copying;
+
va_list formatArgs;
CMStringA url;
@@ -79,6 +80,8 @@ protected: request.szUrl = request.url.GetBuffer();
}
+ HttpRequestUrl& operator=(const HttpRequestUrl&); // to prevent copying;
+
public:
HttpRequestUrl &operator<<(const VALUE ¶m)
{
@@ -106,7 +109,8 @@ protected: class HttpRequestHeaders
{
- private:
+ HttpRequestHeaders& operator=(const HttpRequestHeaders&); // to prevent copying;
+
HttpRequest &request;
void Add(LPCSTR szName)
@@ -126,19 +130,19 @@ protected: public:
HttpRequestHeaders(HttpRequest &request) : request(request) { }
- HttpRequestHeaders & operator<<(const VALUE ¶m)
+ HttpRequestHeaders& operator<<(const VALUE ¶m)
{
Add(param.szName);
return *this;
}
- HttpRequestHeaders & operator<<(const CHAR_VALUE ¶m)
+ HttpRequestHeaders& operator<<(const CHAR_VALUE ¶m)
{
Add(param.szName, param.szValue);
return *this;
}
- HttpRequestHeaders & operator<<(const FORMAT_VALUE ¶m)
+ HttpRequestHeaders& operator<<(const FORMAT_VALUE ¶m)
{
Add(param.szName, param.szValue);
return *this;
|