diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-21 17:52:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-21 17:52:39 +0000 |
commit | 23edfd1711616997256311f574cec97c42cbf2de (patch) | |
tree | a3993de8fa6cdb6c65d347849aceed748f078663 /plugins/ModernOpt | |
parent | 11354effc08a8d1b1b0fc95b5c473256f33c8ec3 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@11559 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ModernOpt')
-rw-r--r-- | plugins/ModernOpt/src/mopt_selector.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ModernOpt/src/mopt_selector.cpp b/plugins/ModernOpt/src/mopt_selector.cpp index 267848781b..7a1bfa1285 100644 --- a/plugins/ModernOpt/src/mopt_selector.cpp +++ b/plugins/ModernOpt/src/mopt_selector.cpp @@ -96,7 +96,7 @@ struct TSkinListItem path = (TCHAR *)mir_alloc(MAX_PATH * sizeof(TCHAR));
PathToRelativeT(curPath, path);
- int length = mir_tstrlen(curPath)+mir_tstrlen(fn)+2;
+ size_t length = mir_tstrlen(curPath)+mir_tstrlen(fn)+2;
filename = (TCHAR *)mir_alloc(length * sizeof(TCHAR));
mir_sntprintf(filename, length, _T("%s\\%s"), curPath, fn);
}
@@ -128,7 +128,7 @@ struct TSelectorData static bool CheckExt(TCHAR *fn, TCHAR *ext, int n)
{
- int l = mir_tstrlen(fn);
+ size_t l = mir_tstrlen(fn);
return (l > n) && !mir_tstrcmp(fn + l - n, ext);
}
@@ -140,7 +140,7 @@ static void BuildSkinList(HWND hwndList, TCHAR *szExt, int nExtLength = -1, bool if (TCHAR *p = _tcsrchr(mirPath, _T('\\'))) *p = 0;
SetCurrentDirectory(mirPath);
SendMessage(hwndList, LB_RESETCONTENT, 0, 0);
- nExtLength = mir_tstrlen(szExt);
+ nExtLength = (int)mir_tstrlen(szExt);
SendMessage(hwndList, WM_SETREDRAW, FALSE, 0);
}
|