From ae14345bbfce23728baefb9db26ff8e73ea13ad7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 14 Apr 2015 13:02:11 +0000 Subject: warning fix git-svn-id: http://svn.miranda-ng.org/main/trunk@12805 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/http_request.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'protocols/SkypeWeb/src/http_request.h') 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; -- cgit v1.2.3