summaryrefslogtreecommitdiff
path: root/src/core/stdfile/filexferdlg.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-18 21:37:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-18 21:37:39 +0000
commit0a46be5b99fe49b8f4616a88459381133d6c9b5f (patch)
treeade0f4bb63087f5cd01c6b00a53e2a461e2b1ae2 /src/core/stdfile/filexferdlg.cpp
parent02413392a2b40fcebe5f178c776402a9ce148604 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1028 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdfile/filexferdlg.cpp')
-rw-r--r--src/core/stdfile/filexferdlg.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/stdfile/filexferdlg.cpp b/src/core/stdfile/filexferdlg.cpp
index 09b2807201..306c0cd457 100644
--- a/src/core/stdfile/filexferdlg.cpp
+++ b/src/core/stdfile/filexferdlg.cpp
@@ -52,10 +52,10 @@ TCHAR* PFTS_StringToTchar(int flags, const PROTOCHAR* s)
return mir_a2t((char*)s);
}
-int PFTS_CompareWithTchar(PROTOFILETRANSFERSTATUS* ft, const PROTOCHAR* s, TCHAR* r)
+int PFTS_CompareWithTchar(PROTOFILETRANSFERSTATUS* ft, const PROTOCHAR* s, TCHAR *r)
{
if (ft->flags & PFTS_UTF) {
- TCHAR* ts = Utf8DecodeW((char*)s);
+ TCHAR *ts = Utf8DecodeW((char*)s);
int res = _tcscmp(ts, r);
mir_free(ts);
return res;
@@ -63,7 +63,7 @@ int PFTS_CompareWithTchar(PROTOFILETRANSFERSTATUS* ft, const PROTOCHAR* s, TCHAR
else if (ft->flags & PFTS_UNICODE)
return _tcscmp(s, r);
else {
- TCHAR* ts = mir_a2t((char*)s);
+ TCHAR *ts = mir_a2t((char*)s);
int res = _tcscmp(ts, r);
mir_free(ts);
return res;
@@ -376,11 +376,11 @@ INT_PTR CALLBACK DlgProcFileTransfer(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
case IDC_OPENFOLDER:
if (dat)
{
- TCHAR* path = dat->transferStatus.tszWorkingDir;
+ TCHAR *path = dat->transferStatus.tszWorkingDir;
if ( !path || !path[0])
{
path = NEWTSTR_ALLOCA(dat->transferStatus.tszCurrentFile);
- TCHAR* p = _tcsrchr(path, '\\'); if (p) *p = 0;
+ TCHAR *p = _tcsrchr(path, '\\'); if (p) *p = 0;
}
if (path) ShellExecute(NULL, _T("open"), path, NULL, NULL, SW_SHOW);
@@ -450,11 +450,11 @@ INT_PTR CALLBACK DlgProcFileTransfer(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
if (ret == 1)
{
- TCHAR* path = dat->transferStatus.tszWorkingDir;
+ TCHAR *path = dat->transferStatus.tszWorkingDir;
if ( !path || !path[0])
{
path = NEWTSTR_ALLOCA(dat->transferStatus.tszCurrentFile);
- TCHAR* p = _tcsrchr(path, '\\'); if (p) *p = 0;
+ TCHAR *p = _tcsrchr(path, '\\'); if (p) *p = 0;
}
if (path) ShellExecute(NULL, _T("open"), path, NULL, NULL, SW_SHOW);