From 7205e006b83f8cbeb70c10507cfc2de7698cc4e9 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 14 Nov 2012 13:36:09 +0000 Subject: tabs and spaces cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2310 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/clistsettings.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/modules/clist/clistsettings.cpp') 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) -- cgit v1.2.3