diff options
| author | George Hazan <ghazan@miranda.im> | 2019-07-26 20:02:16 +0300 | 
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2019-07-26 20:02:22 +0300 | 
| commit | 9374c8e701dcb61a46c89a854235d91a23bf672e (patch) | |
| tree | ad366bc7f47da578fb33a57c32912689f5aadecb /protocols/Twitter/src | |
| parent | 3c5923d11431c515db57e4e972d53bf0443f1bcb (diff) | |
warning fixes
Diffstat (limited to 'protocols/Twitter/src')
| -rw-r--r-- | protocols/Twitter/src/connection.cpp | 10 | ||||
| -rw-r--r-- | protocols/Twitter/src/oauth.cpp | 2 | ||||
| -rw-r--r-- | protocols/Twitter/src/utility.cpp | 3 | 
3 files changed, 4 insertions, 11 deletions
diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp index 251d901cf5..8ec1d5bc9a 100644 --- a/protocols/Twitter/src/connection.cpp +++ b/protocols/Twitter/src/connection.cpp @@ -307,21 +307,15 @@ void TwitterProto::MessageLoop(void*)  		if (m_iStatus != ID_STATUS_ONLINE)
  			break;
 -		//		if(i%10 == 0)
 -		//			UpdateFriends();
 -
 -		if (m_iStatus != ID_STATUS_ONLINE)
 -			break;
 +	
  		UpdateStatuses(new_account, popups, tweetToMsg);
 -
  		if (m_iStatus != ID_STATUS_ONLINE)
  			break;
  		if (i % 10 == 0)
  			UpdateMessages(new_account);
 -		if (new_account) // Not anymore!
 -		{
 +		if (new_account) { // Not anymore!
  			new_account = false;
  			setByte(TWITTER_KEY_NEW, 0);
  		}
 diff --git a/protocols/Twitter/src/oauth.cpp b/protocols/Twitter/src/oauth.cpp index afdb23413a..e7ff001450 100644 --- a/protocols/Twitter/src/oauth.cpp +++ b/protocols/Twitter/src/oauth.cpp @@ -172,7 +172,7 @@ wstring mir_twitter::OAuthConcatenateRequestElements(const wstring& httpMethod,  map<wstring, wstring> mir_twitter::CrackURL(wstring url)
  {
  	wstring scheme1, domain1, port1, path1, extraInfo, explicitPort;
 -	vector<wstring> urlToks, urlToks2, extraInfoToks;
 +	vector<wstring> urlToks, urlToks2;
  	Split(url, urlToks, L':', false);
 diff --git a/protocols/Twitter/src/utility.cpp b/protocols/Twitter/src/utility.cpp index 3001173ee1..460ef0df3b 100644 --- a/protocols/Twitter/src/utility.cpp +++ b/protocols/Twitter/src/utility.cpp @@ -67,7 +67,7 @@ http::response mir_twitter::slurp(const std::string &url, http::method meth, OAu  		auth = OAuthWebRequestSubmit(url_WSTR, L"GET", nullptr, consumerKey_, consumerSecret_,
  			oauthAccessToken_, oauthAccessTokenSecret_, pin_);
  	}
 -	else if (meth == http::post) {
 +	else {
  		// OAuthParameters postParams;
  		if (url_WSTR.size() > 0) { ppro_->debugLogW(L"**SLURP::POST - we have a URL: %s", url_WSTR.c_str()); }
  		if (consumerKey_.size() > 0) { ppro_->debugLogA("**SLURP::POST - we have a consumerKey"); }
 @@ -82,7 +82,6 @@ http::response mir_twitter::slurp(const std::string &url, http::method meth, OAu  		auth = OAuthWebRequestSubmit(url_WSTR, L"POST", &postParams, consumerKey_, consumerSecret_, oauthAccessToken_, oauthAccessTokenSecret_);
  	}
 -	else ppro_->debugLogA("**SLURP - There is something really wrong.. the http method was neither get or post.. WHY??");
  	std::string auth_STR = WideToUTF8(auth);
  | 
