From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/avatar.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Yahoo/avatar.cpp') diff --git a/protocols/Yahoo/avatar.cpp b/protocols/Yahoo/avatar.cpp index 4ad7233cb9..9b093ccb3d 100644 --- a/protocols/Yahoo/avatar.cpp +++ b/protocols/Yahoo/avatar.cpp @@ -37,7 +37,7 @@ int YAHOO_avt_hash(const char *key, DWORD len) while(i--) { checksum = (checksum << 4) + *p++; - if((g = (checksum & 0xf0000000)) != 0) + if ((g = (checksum & 0xf0000000)) != 0) checksum ^= g >> 23; checksum &= ~g; @@ -186,7 +186,7 @@ void __cdecl CYahooProto::recv_avatarthread(void *pavt) SetDword(hContact, "PictLoading", 1); } - if(!error) { + if (!error) { NETLIBHTTPREQUEST nlhr={0},*nlhrReply; @@ -406,7 +406,7 @@ void CYahooProto::ext_got_picture(const char *me, const char *who, const char *p LOG(("[ext_yahoo_got_picture] My Checksum: %d", mcksum)); - if (!DBGetContactSettingString(NULL, m_szModuleName, "AvatarURL", &dbv)){ + if (!DBGetContactSettingString(NULL, m_szModuleName, "AvatarURL", &dbv)) { if (lstrcmpiA(pic_url, dbv.pszVal) == 0) { DBVARIANT dbv2; /*time_t ts; @@ -562,7 +562,7 @@ void CYahooProto::ext_got_picture_upload(const char *me, const char *url,unsigne SetString(NULL, "AvatarURL", url); //YAHOO_SetDword("AvatarExpires", ts); - if (!DBGetContactSettingString(NULL, m_szModuleName, "AvatarInv", &dbv) ){ + if (!DBGetContactSettingString(NULL, m_szModuleName, "AvatarInv", &dbv) ) { LOG(("[ext_yahoo_got_picture_upload] Buddy: %s told us this is bad??", dbv.pszVal)); LOG(("[ext_yahoo_got_picture] Sending url: %s checksum: %d to '%s'!", url, cksum, dbv.pszVal)); @@ -809,8 +809,8 @@ INT_PTR __cdecl CYahooProto::GetMyAvatar(WPARAM wParam, LPARAM lParam) DBVARIANT dbv; int ret = -3; - if (GetDword("AvatarHash", 0)){ - if (!DBGetContactSettingTString(NULL, m_szModuleName, "AvatarFile", &dbv)){ + if (GetDword("AvatarHash", 0)) { + if (!DBGetContactSettingTString(NULL, m_szModuleName, "AvatarFile", &dbv)) { if (_taccess(dbv.ptszVal, 0) == 0){ lstrcpyn(buffer, dbv.ptszVal, size-1); buffer[size-1] = '\0'; -- cgit v1.2.3