From 1c0172cca4f1e90679321912e20436a7f42f122d Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 24 Feb 2018 15:32:06 +0100 Subject: more nullptr --- protocols/Omegle/src/client.h | 18 +++++++++--------- protocols/Omegle/src/proto.h | 2 +- protocols/Omegle/src/stdafx.h | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'protocols/Omegle/src') diff --git a/protocols/Omegle/src/client.h b/protocols/Omegle/src/client.h index db44086101..60acaf0623 100644 --- a/protocols/Omegle/src/client.h +++ b/protocols/Omegle/src/client.h @@ -41,7 +41,7 @@ public: // Client definition Omegle_client() { - nick_ = NULL; + nick_ = nullptr; //msgid_ = 0; state_ = STATE_INACTIVE; @@ -49,12 +49,12 @@ public: error_count_ = 0; - parent = NULL; - handle_ = NULL; - hConnection = NULL; - hEventsConnection = NULL; - connection_lock_ = NULL; - chatHandle_ = NULL; + parent = nullptr; + handle_ = nullptr; + hConnection = nullptr; + hEventsConnection = nullptr; + connection_lock_ = nullptr; + chatHandle_ = nullptr; } HNETLIBCONN hConnection; @@ -108,10 +108,10 @@ public: bool send_message(const std::string &message_text); // HTTP communication - http::response flap(const int request_type, std::string *post_data = NULL, std::string *get_data = NULL); + http::response flap(const int request_type, std::string *post_data = nullptr, std::string *get_data = nullptr); std::string choose_server(int); - std::string choose_action(int, std::string *get_data = NULL); + std::string choose_action(int, std::string *get_data = nullptr); NETLIBHTTPHEADER *get_request_headers(int request_type, int *headers_count); diff --git a/protocols/Omegle/src/proto.h b/protocols/Omegle/src/proto.h index 23a96e44c5..4eac66f67e 100644 --- a/protocols/Omegle/src/proto.h +++ b/protocols/Omegle/src/proto.h @@ -95,7 +95,7 @@ public: void DeleteChatContact(const wchar_t *name); void SetChatStatus(int); void ClearChat(); - void SetTopic(const wchar_t *topic = NULL); + void SetTopic(const wchar_t *topic = nullptr); MCONTACT GetChatHandle(); // Connection client diff --git a/protocols/Omegle/src/stdafx.h b/protocols/Omegle/src/stdafx.h index 19412d8a2b..f216b4932c 100644 --- a/protocols/Omegle/src/stdafx.h +++ b/protocols/Omegle/src/stdafx.h @@ -93,7 +93,7 @@ public: void Unlock() { ReleaseMutex(handle_); - handle_ = 0; + handle_ = nullptr; } private: HANDLE handle_; -- cgit v1.2.3