From 4b99b5b4abad1cf12ac5c7bbb8788899ba6a48ab Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 9 Jul 2018 13:03:28 +0300 Subject: massive Variables-related code cleaning (removed TCHAR, manually created unions replaced with MAllString etc) --- plugins/SpellChecker/src/autoreplace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SpellChecker/src/autoreplace.cpp') diff --git a/plugins/SpellChecker/src/autoreplace.cpp b/plugins/SpellChecker/src/autoreplace.cpp index e2db8efbae..921f105c7f 100644 --- a/plugins/SpellChecker/src/autoreplace.cpp +++ b/plugins/SpellChecker/src/autoreplace.cpp @@ -169,9 +169,9 @@ CMStringW AutoReplaceMap::autoReplace(const wchar_t * word) wchar_t* AutoReplaceMap::filterText(const wchar_t *find) { wchar_t *ret = mir_wstrdup(find); - int len = mir_wstrlen(ret); + size_t len = mir_wstrlen(ret); int pos = 0; - for (int i = 0; i < len; i++) + for (size_t i = 0; i < len; i++) if (isWordChar(find[i])) ret[pos++] = ret[i]; ret[pos] = 0; -- cgit v1.2.3