diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-17 15:56:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-17 15:56:52 +0300 |
commit | 3e05d92dcb5f6c2017bc462554901ba27816bdb4 (patch) | |
tree | 3276a7c3527006b74afc00c197ab48a3a43b1e9e /protocols/Steam | |
parent | e285d61d903c2616f5a7ea3026a1068ceb59b513 (diff) |
MNonCopyable - the common class to avoid declaring fake private constructors
Diffstat (limited to 'protocols/Steam')
-rw-r--r-- | protocols/Steam/src/http_request.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 64849f2983..3d87defe43 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -4,7 +4,7 @@ class HttpRequest; class HttpResponse; -class HttpUri +class HttpUri : private MNonCopyable { friend class HttpRequest; @@ -53,8 +53,6 @@ private: } public: - HttpUri& operator=(const HttpUri&); // to prevent copying; - operator const char*() const { return m_request @@ -87,7 +85,7 @@ public: } }; -class HttpHeaders +class HttpHeaders : private MNonCopyable { friend class HttpContent; friend class HttpRequest; @@ -119,8 +117,6 @@ private: } public: - HttpHeaders& operator=(const HttpHeaders&); // to prevent copying; - const NETLIBHTTPHEADER* operator[](size_t idx) const { return m_request @@ -158,7 +154,7 @@ public: } }; -class HttpContent +class HttpContent : private MNonCopyable { friend class HttpRequest; friend class HttpResponse; @@ -182,8 +178,6 @@ protected: } public: - HttpContent& operator=(const HttpContent&); // to prevent copying; - operator bool() const { return m_request && m_request->pData && m_request->dataLength; |