summaryrefslogtreecommitdiff
path: root/src/modules/clist/clistsettings.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-11-14 13:36:09 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-11-14 13:36:09 +0000
commit7205e006b83f8cbeb70c10507cfc2de7698cc4e9 (patch)
tree94d6a894705bdc68d013fdac5fddb55fafc67f5e /src/modules/clist/clistsettings.cpp
parent1a9a5f548e8f507a60997f59a0e09d94b2d6f2b8 (diff)
tabs and spaces cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/clistsettings.cpp')
-rw-r--r--src/modules/clist/clistsettings.cpp17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/modules/clist/clistsettings.cpp b/src/modules/clist/clistsettings.cpp
index 4535781588..00b85a2194 100644
--- a/src/modules/clist/clistsettings.cpp
+++ b/src/modules/clist/clistsettings.cpp
@@ -48,7 +48,8 @@ void FreeDisplayNameCache(void)
List_Destroy(clistCache);
mir_free(clistCache);
clistCache = NULL;
-} }
+ }
+}
// default handlers for the cache item creation and destruction
@@ -111,7 +112,8 @@ void fnInvalidateDisplayNameCacheEntry(HANDLE hContact)
int idx;
if (List_GetIndex(clistCache, &hContact, &idx))
cli.pfnFreeCacheItem((ClcCacheEntry*)clistCache->items[idx]);
-} }
+ }
+}
TCHAR* fnGetContactDisplayName(HANDLE hContact, int mode)
{
@@ -145,7 +147,8 @@ TCHAR* fnGetContactDisplayName(HANDLE hContact, int mode)
if (cacheEntry != NULL)
cacheEntry->tszName = buffer;
return buffer;
- } }
+ }
+ }
CallContactService(hContact, PSS_GETINFO, SGIF_MINIMAL, 0);
TCHAR *buffer = TranslateT("(Unknown Contact)");
@@ -184,7 +187,7 @@ INT_PTR GetContactDisplayName(WPARAM wParam, LPARAM lParam)
mir_free(ci.pszVal);
return (INT_PTR)mir_strdup(retVal);
}
-
+
cacheEntry->tszName = ci.pszVal;
return (INT_PTR)retVal;
}
@@ -260,7 +263,8 @@ int ContactSettingChanged(WPARAM wParam, LPARAM lParam)
return 0;
}
cli.pfnSortContacts();
- } }
+ }
+ }
if ( !strcmp(cws->szModule, "CList")) {
if ( !strcmp(cws->szSetting, "Hidden")) {
@@ -286,7 +290,8 @@ int ContactSettingChanged(WPARAM wParam, LPARAM lParam)
cli.pfnIconFromStatusMode(szProto,
szProto == NULL ? ID_STATUS_OFFLINE : DBGetContactSettingWord(hContact, szProto, "Status",
ID_STATUS_OFFLINE), hContact), 0);
- } }
+ }
+ }
// Clean up
if (dbv.pszVal)