diff options
| author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-02-24 15:32:06 +0100 | 
|---|---|---|
| committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-02-24 18:20:46 +0100 | 
| commit | 1c0172cca4f1e90679321912e20436a7f42f122d (patch) | |
| tree | 77a544d2c09332ec176f42ebcf58a40d9c5d2b93 /protocols/Twitter/src | |
| parent | dff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (diff) | |
more nullptr
Diffstat (limited to 'protocols/Twitter/src')
| -rw-r--r-- | protocols/Twitter/src/proto.h | 2 | ||||
| -rw-r--r-- | protocols/Twitter/src/utility.h | 4 | 
2 files changed, 3 insertions, 3 deletions
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<std::wstring, std::wstring> 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 );
  | 
