summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/avatars.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-04-10 07:17:34 +0000
committerRobert Pösel <robyer@seznam.cz>2013-04-10 07:17:34 +0000
commit567faf65895cc362a714fc60508fb676863031af (patch)
tree39ae3caef87285d8c66777a809181de96bf6f83b /protocols/FacebookRM/src/avatars.cpp
parent2db0f15d4e99fc869402268195fdf63d6131b34f (diff)
Removed spaces around brackets
git-svn-id: http://svn.miranda-ng.org/main/trunk@4406 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/avatars.cpp')
-rw-r--r--protocols/FacebookRM/src/avatars.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/FacebookRM/src/avatars.cpp b/protocols/FacebookRM/src/avatars.cpp
index ae0f2f40b3..eabb77c8f0 100644
--- a/protocols/FacebookRM/src/avatars.cpp
+++ b/protocols/FacebookRM/src/avatars.cpp
@@ -60,15 +60,15 @@ void FacebookProto::CheckAvatarChange(HANDLE hContact, std::string image_url)
bool big_avatars = db_get_b(NULL, m_szModuleName, FACEBOOK_KEY_BIG_AVATARS, DEFAULT_BIG_AVATARS) != 0;
// We've got url to avatar of default size 32x32px, let's change it to slightly bigger (50x50px) - looks like maximum size for square format
- std::tstring::size_type pos = image_url.rfind( "/s32x32/" );
+ std::tstring::size_type pos = image_url.rfind("/s32x32/");
if (pos != std::wstring::npos)
- image_url = image_url.replace( pos, 8, big_avatars ? "/s200x200/" : "/s50x50/" );
+ image_url = image_url.replace(pos, 8, big_avatars ? "/s200x200/" : "/s50x50/");
if (big_avatars)
{
- pos = image_url.rfind( "_q." );
+ pos = image_url.rfind("_q.");
if (pos != std::wstring::npos)
- image_url = image_url.replace( pos, 3, "_s." );
+ image_url = image_url.replace(pos, 3, "_s.");
}
DBVARIANT dbv;
@@ -135,8 +135,8 @@ void FacebookProto::UpdateAvatarWorker(void *)
std::tstring FacebookProto::GetAvatarFolder()
{
TCHAR path[MAX_PATH];
- if ( !hAvatarFolder_ || FoldersGetCustomPathT(hAvatarFolder_, path, SIZEOF(path), _T("")))
- mir_sntprintf(path, SIZEOF(path), _T("%s\\%s"), (TCHAR*)VARST( _T("%miranda_avatarcache%")), m_tszUserName);
+ if (!hAvatarFolder_ || FoldersGetCustomPathT(hAvatarFolder_, path, SIZEOF(path), _T("")))
+ mir_sntprintf(path, SIZEOF(path), _T("%s\\%s"), (TCHAR*)VARST(_T("%miranda_avatarcache%")), m_tszUserName);
return path;
}
@@ -196,7 +196,7 @@ int FacebookProto::GetAvatarInfo(WPARAM wParam, LPARAM lParam)
if (needLoad)
{
LOG("***** Starting avatar request thread for %s", AI->filename);
- ScopedLock s( avatar_lock_ );
+ ScopedLock s(avatar_lock_);
if (std::find(avatar_queue.begin(), avatar_queue.end(), AI->hContact) == avatar_queue.end())
{
@@ -221,8 +221,8 @@ int FacebookProto::GetMyAvatar(WPARAM wParam, LPARAM lParam)
if (!wParam || !lParam)
return -3;
- TCHAR* buf = ( TCHAR* )wParam;
- int size = ( int )lParam;
+ TCHAR* buf = (TCHAR*)wParam;
+ int size = (int)lParam;
PROTO_AVATAR_INFORMATIONT ai = {sizeof(ai)};
switch (GetAvatarInfo(0, (LPARAM)&ai))