summaryrefslogtreecommitdiff
path: root/plugins/YAMN/src/proto
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YAMN/src/proto')
-rw-r--r--plugins/YAMN/src/proto/netclient.h4
-rw-r--r--plugins/YAMN/src/proto/netlib.h8
-rw-r--r--plugins/YAMN/src/proto/pop3/pop3.h4
3 files changed, 8 insertions, 8 deletions
diff --git a/plugins/YAMN/src/proto/netclient.h b/plugins/YAMN/src/proto/netclient.h
index 2414dbdef1..55e0fb0d7d 100644
--- a/plugins/YAMN/src/proto/netclient.h
+++ b/plugins/YAMN/src/proto/netclient.h
@@ -5,9 +5,9 @@ class CNetClient
{
public:
CNetClient(): Stopped(FALSE) {}
- virtual void Connect(const char* servername,const int port)=0;
+ virtual void Connect(const char* servername, const int port)=0;
virtual void Send(const char *query)=0;
- virtual char* Recv(char *buf=NULL,int buflen=65536)=0;
+ virtual char* Recv(char *buf= nullptr, int buflen=65536)=0;
virtual void Disconnect()=0;
virtual BOOL Connected()=0;
virtual void SSLify()=0;
diff --git a/plugins/YAMN/src/proto/netlib.h b/plugins/YAMN/src/proto/netlib.h
index de41a6ad04..fd00ed6b84 100644
--- a/plugins/YAMN/src/proto/netlib.h
+++ b/plugins/YAMN/src/proto/netlib.h
@@ -4,14 +4,14 @@
class CNLClient: public CNetClient
{
public:
- CNLClient(): hConnection(NULL) {}
- void Connect(const char* servername,const int port) throw(DWORD);
+ CNLClient(): hConnection(nullptr) {}
+ void Connect(const char* servername, const int port) throw(DWORD);
void Send(const char *query) throw(DWORD);
- char* Recv(char *buf=NULL,int buflen=65536) throw(DWORD);
+ char* Recv(char *buf= nullptr, int buflen = 65536) throw(DWORD);
void Disconnect();
void SSLify()throw(DWORD);
- inline BOOL Connected() {return hConnection!=NULL;}
+ inline BOOL Connected() {return hConnection != nullptr;}
protected:
HNETLIBCONN hConnection;
diff --git a/plugins/YAMN/src/proto/pop3/pop3.h b/plugins/YAMN/src/proto/pop3/pop3.h
index c65dc2ee26..82e1a2c17e 100644
--- a/plugins/YAMN/src/proto/pop3/pop3.h
+++ b/plugins/YAMN/src/proto/pop3/pop3.h
@@ -19,8 +19,8 @@
class CPop3Client
{
public:
- CPop3Client(): NetClient(NULL), Stopped(FALSE) {}
- ~CPop3Client() {if (NetClient != NULL) delete NetClient;}
+ CPop3Client(): NetClient(nullptr), Stopped(FALSE) {}
+ ~CPop3Client() {if (NetClient != nullptr) delete NetClient;}
char* Connect(const char* servername,const int port=110,BOOL UseSSL=FALSE, BOOL NoTLS=FALSE);
char* RecvRest(char* prev,int mode,int size=65536);