summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-04-07 16:56:30 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-04-07 16:56:30 +0000
commit01bac185867775eeccb19d5dd41c4ab6347c35bc (patch)
tree6403826deacaac6a79ddfb767e79c860284e8983 /include
parent9a974d04544f79d40fbaf728b9073ebf01689c1b (diff)
m_netlib.h: NLHR_PTR construct. from INT_PTR
git-svn-id: http://svn.miranda-ng.org/main/trunk@16604 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_netlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/m_netlib.h b/include/m_netlib.h
index cc5fce541a..accc3db99e 100644
--- a/include/m_netlib.h
+++ b/include/m_netlib.h
@@ -541,6 +541,12 @@ protected:
public:
__inline explicit NLHR_PTR(NETLIBHTTPREQUEST *p) : _p(p) {}
+ __inline explicit NLHR_PTR(INT_PTR i_p) : _p((NETLIBHTTPREQUEST*)i_p) {}
+
+ __inline NETLIBHTTPREQUEST* operator=(INT_PTR i_p)
+ {
+ return operator=((NETLIBHTTPREQUEST*)i_p);
+ }
__inline NETLIBHTTPREQUEST* operator=(NETLIBHTTPREQUEST *p)
{
if (_p)