summaryrefslogtreecommitdiff
path: root/protocols/Twitter
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Twitter')
-rw-r--r--protocols/Twitter/src/proto.h2
-rw-r--r--protocols/Twitter/src/utility.h4
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 );