diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-16 09:39:52 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-11-16 09:39:52 +0000 |
commit | 6702b225a17d5aaf1102ba401c879cc70c7cc061 (patch) | |
tree | 1fb8ff267615e9d9b4c3f1e75b77990a5acd04d7 /src/modules/findadd/searchresults.cpp | |
parent | 16a772982aae83d22f22d3561d705deb55728c2a (diff) |
tabs and spaces cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@2328 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/findadd/searchresults.cpp')
-rw-r--r-- | src/modules/findadd/searchresults.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/modules/findadd/searchresults.cpp b/src/modules/findadd/searchresults.cpp index 8393fbc4b6..597ae8a2e2 100644 --- a/src/modules/findadd/searchresults.cpp +++ b/src/modules/findadd/searchresults.cpp @@ -98,7 +98,7 @@ void LoadColumnSizes(HWND hwndResults, const char *szProto) ListView_InsertColumn(hwndResults, i, (LPARAM)&lvc);
if (bNeedsFree)
- mir_free(lvc.pszText);
+ mir_free(lvc.pszText);
}
mir_snprintf(szSetting, SIZEOF(szSetting), "ColOrder%d", i);
columnOrder[i] = db_get_b(NULL, "FindAdd", szSetting, -1);
@@ -265,7 +265,8 @@ void SetStatusBarSearchInfo(HWND hwndStatus, struct FindAddDlgData *dat) lstrcat(str, i ? _T(", ") : _T(" "));
lstrcat(str, pa->tszAccountName);
- } }
+ }
+ }
else lstrcpy(str, TranslateT("Idle"));
SendMessage(hwndStatus, SB_SETTEXT, 0, (LPARAM)str);
@@ -312,7 +313,7 @@ void SetStatusBarResultInfo(HWND hwndDlg) if (subtotalCount == 1) {
if (total == 1) mir_sntprintf(str, SIZEOF(str), TranslateT("1 %s user found"), pa->tszAccountName);
- else mir_sntprintf(str, SIZEOF(str), TranslateT("%d %s users found"), total, pa->tszAccountName);
+ else mir_sntprintf(str, SIZEOF(str), TranslateT("%d %s users found"), total, pa->tszAccountName);
}
else {
mir_sntprintf(str, SIZEOF(str), TranslateT("%d users found ("), total);
@@ -350,7 +351,8 @@ void ShowMoreOptionsMenu(HWND hwndDlg, int x, int y) dat = (struct FindAddDlgData*)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
- { LVITEM lvi;
+ {
+ LVITEM lvi;
if (ListView_GetSelectedCount( GetDlgItem(hwndDlg, IDC_RESULTS)) != 1) return;
lvi.mask = LVIF_PARAM;
lvi.iItem = ListView_GetNextItem( GetDlgItem(hwndDlg, IDC_RESULTS), -1, LVNI_ALL|LVNI_SELECTED);
@@ -364,7 +366,8 @@ void ShowMoreOptionsMenu(HWND hwndDlg, int x, int y) commandId = TrackPopupMenu(hPopupMenu, TPM_RIGHTBUTTON|TPM_RETURNCMD, x, y, 0, hwndDlg, NULL);
switch(commandId) {
case IDC_ADD:
- { ADDCONTACTSTRUCT acs;
+ {
+ ADDCONTACTSTRUCT acs;
acs.handle = NULL;
acs.handleType = HANDLE_SEARCHRESULT;
@@ -374,13 +377,15 @@ void ShowMoreOptionsMenu(HWND hwndDlg, int x, int y) break;
}
case IDC_DETAILS:
- { HANDLE hContact;
+ {
+ HANDLE hContact;
hContact = (HANDLE)CallProtoServiceInt(NULL,lsr->szProto, PS_ADDTOLIST, PALF_TEMPORARY, (LPARAM)&lsr->psr);
CallService(MS_USERINFO_SHOWDIALOG, (WPARAM)hContact, 0);
break;
}
case IDC_SENDMESSAGE:
- { HANDLE hContact;
+ {
+ HANDLE hContact;
hContact = (HANDLE)CallProtoServiceInt(NULL,lsr->szProto, PS_ADDTOLIST, PALF_TEMPORARY, (LPARAM)&lsr->psr);
CallService(MS_MSG_SENDMESSAGE, (WPARAM)hContact, (LPARAM)(const char*)NULL);
break;
|