mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-03 18:12:58 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -35,7 +35,7 @@ Usage
|
||||
'L' - long long int (8)
|
||||
'i' - int (4)
|
||||
's' - short int (2)
|
||||
'S' - C-style, null-terminated string (n + null)
|
||||
'S' - C-style, nullptr-terminated string (n + nullptr)
|
||||
'Bn' - buffer, of size n. Used for non-terminated strings, or
|
||||
other binary data.
|
||||
*/
|
||||
@@ -115,7 +115,7 @@ private:
|
||||
|
||||
//----------------------------------------------------------------
|
||||
// stringMessage
|
||||
// This message type is used for passing messages that can consist of a NULL terminated string
|
||||
// This message type is used for passing messages that can consist of a nullptr terminated string
|
||||
class stringMessage : public monMessage
|
||||
{
|
||||
public:
|
||||
@@ -252,7 +252,7 @@ class CMonitorData {
|
||||
|
||||
public:
|
||||
|
||||
// CMonitorData(GenericNotifier *notifier=NULL );
|
||||
// CMonitorData(GenericNotifier *notifier=nullptr );
|
||||
CMonitorData();
|
||||
virtual ~CMonitorData();
|
||||
|
||||
@@ -266,7 +266,7 @@ public:
|
||||
bool processDescriptionRequest(UdpConnection *con, short & sequence, char * userData, int dataLen,unsigned char *mark);
|
||||
int add(const char *label, int id, int ping, const char *des );
|
||||
int setDescription( int Id, const char *Description , int & mode);
|
||||
char *getDescription(int x){ if( m_ndata >= x ) return NULL; return m_data[x].discription;}
|
||||
char *getDescription(int x){ if( m_ndata >= x ) return nullptr; return m_data[x].discription;}
|
||||
int pingValue(int p);
|
||||
void set(int Id, int value);
|
||||
void remove(int Id);
|
||||
|
||||
Reference in New Issue
Block a user