summaryrefslogtreecommitdiff
path: root/protocols/Omegle
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 15:32:06 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 18:20:46 +0100
commit1c0172cca4f1e90679321912e20436a7f42f122d (patch)
tree77a544d2c09332ec176f42ebcf58a40d9c5d2b93 /protocols/Omegle
parentdff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (diff)
more nullptr
Diffstat (limited to 'protocols/Omegle')
-rw-r--r--protocols/Omegle/src/client.h18
-rw-r--r--protocols/Omegle/src/proto.h2
-rw-r--r--protocols/Omegle/src/stdafx.h2
3 files changed, 11 insertions, 11 deletions
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_;