summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-03 11:23:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-03 11:23:33 +0000
commit9e1a2beaf1db681e6f0108d62f30e86a76bb6e9f (patch)
tree42521c10e2b37637545f883179928d294938c691 /plugins/TabSRMM/src/msgs.cpp
parent67585ba8617748c8df280ee6bb69214079017554 (diff)
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5562 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index d3c1613a3e..52697325d4 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -715,7 +715,7 @@ HWND TSAPI CreateNewTabForContact(TContainerData *pContainer, HANDLE hContact, i
ZeroMemory((void*)&newData.item, sizeof(newData.item));
// obtain various status information about the contact
- TCHAR *contactName = (TCHAR *) CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)newData.hContact, GCDNF_TCHAR);
+ TCHAR *contactName = pcli->pfnGetContactDisplayName(newData.hContact, 0);
/*
* cut nickname if larger than x chars...
@@ -1034,7 +1034,7 @@ static int GetIconPackVersion(HMODULE hDLL)
static int TSAPI SetupIconLibConfig()
{
- int i = 0, j = 2, version = 0, n = 0;
+ int i=0, j = 2, version = 0, n = 0;
TCHAR szFilename[MAX_PATH];
_tcsncpy(szFilename, _T("icons\\tabsrmm_icons.dll"), MAX_PATH);
@@ -1096,7 +1096,7 @@ static int TSAPI SetupIconLibConfig()
static int TSAPI LoadFromIconLib()
{
for (int n = 0;ICONBLOCKS[n].szSection;n++) {
- for (int i = 0;ICONBLOCKS[n].idesc[i].szDesc;i++) {
+ for (int i=0;ICONBLOCKS[n].idesc[i].szDesc;i++) {
*(ICONBLOCKS[n].idesc[i].phIcon) = Skin_GetIcon(ICONBLOCKS[n].idesc[i].szName);
}
}
@@ -1140,7 +1140,7 @@ void TSAPI LoadIconTheme()
static void UnloadIcons()
{
for (int n = 0;ICONBLOCKS[n].szSection;n++) {
- for (int i = 0;ICONBLOCKS[n].idesc[i].szDesc;i++) {
+ for (int i=0;ICONBLOCKS[n].idesc[i].szDesc;i++) {
if (*(ICONBLOCKS[n].idesc[i].phIcon) != 0) {
DestroyIcon(*(ICONBLOCKS[n].idesc[i].phIcon));
*(ICONBLOCKS[n].idesc[i].phIcon) = 0;