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/Twitter/src/proto.h | 2 +- protocols/Twitter/src/utility.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/proto.h b/protocols/Twitter/src/proto.h index e1e7dd051e..46facedcc2 100644 --- a/protocols/Twitter/src/proto.h +++ b/protocols/Twitter/src/proto.h @@ -98,7 +98,7 @@ private: static void CALLBACK APC_callback(ULONG_PTR p); void UpdateChat(const twitter_user &update); - void AddChatContact(const char *name,const char *nick=0); + void AddChatContact(const char *name,const char *nick = nullptr); void DeleteChatContact(const char *name); void SetChatStatus(int); diff --git a/protocols/Twitter/src/utility.h b/protocols/Twitter/src/utility.h index 525e99428c..da2b4eb4a0 100644 --- a/protocols/Twitter/src/utility.h +++ b/protocols/Twitter/src/utility.h @@ -30,7 +30,7 @@ uint64_t str2int(const std::string &str); class mir_twitter : public twitter { public: - mir_twitter() : twitter(), handle_(NULL), httpPOST_(NULL) {} + mir_twitter() : twitter(), handle_(nullptr), httpPOST_(nullptr) {} void set_handle(PROTO_INTERFACE *ppro, HNETLIBUSER h) { ppro_ = ppro; @@ -73,7 +73,7 @@ public: std::wstring OAuthConcatenateRequestElements( const std::wstring& httpMethod, std::wstring url, const std::wstring& parameters ); std::map CrackURL(std::wstring ); std::wstring brook_httpsend(std::wstring, std::wstring, std::wstring, std::wstring); - void Disconnect(void) { if (httpPOST_) Netlib_CloseHandle(httpPOST_); httpPOST_ = NULL; } + void Disconnect(void) { if (httpPOST_) Netlib_CloseHandle(httpPOST_); httpPOST_ = nullptr; } std::wstring OAuthNormalizeUrl( const std::wstring& url ); std::wstring OAuthNormalizeRequestParameters( const OAuthParameters& requestParameters ); OAuthParameters ParseQueryString( const std::wstring& url ); -- cgit v1.2.3