summaryrefslogtreecommitdiff
path: root/src/modules/clist/groups.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-30 22:12:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-30 22:12:34 +0000
commit6be364a555dce699d093f9d49cd14a9b0c174893 (patch)
treeac10770856206fb50d2e83acde528413f5f22009 /src/modules/clist/groups.cpp
parentd9c98bcdfca6da51a1a82dc6c0dc5996b3b6cd6d (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11181 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/groups.cpp')
-rw-r--r--src/modules/clist/groups.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/clist/groups.cpp b/src/modules/clist/groups.cpp
index 716f9418ac..a7c1791bc0 100644
--- a/src/modules/clist/groups.cpp
+++ b/src/modules/clist/groups.cpp
@@ -243,9 +243,7 @@ static INT_PTR DeleteGroup(WPARAM wParam, LPARAM)
//rename subgroups
{
TCHAR szNewName[256];
- int len;
-
- len = mir_tstrlen(name);
+ size_t len = mir_tstrlen(name);
for (i=0;; i++) {
_itoa(i, str, 10);
if (db_get_ts(NULL, "CListGroups", str, &dbv))
@@ -305,10 +303,8 @@ static int RenameGroupWithMove(int groupId, const TCHAR *szName, int move)
//rename subgroups
{
TCHAR szNewName[256];
- int len, i;
-
- len = mir_tstrlen(oldName);
- for (i=0;; i++) {
+ size_t len = mir_tstrlen(oldName);
+ for (int i=0;; i++) {
if (i == groupId)
continue;
_itoa(i, idstr, 10);