From 15d4346a1e3ada4bd14739b63fc239109dc96a0c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 30 Apr 2015 18:47:28 +0000 Subject: custom critical section class replaced with mir_cs/mir_cslock git-svn-id: http://svn.miranda-ng.org/main/trunk@13300 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Boltun/src/Engine/TalkEngine.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/Boltun/src/Engine/TalkEngine.cpp') diff --git a/plugins/Boltun/src/Engine/TalkEngine.cpp b/plugins/Boltun/src/Engine/TalkEngine.cpp index 0391c11112..8d4efbf476 100644 --- a/plugins/Boltun/src/Engine/TalkEngine.cpp +++ b/plugins/Boltun/src/Engine/TalkEngine.cpp @@ -97,8 +97,7 @@ tstring TalkBot::ReplaceAliases(const tstring &message) const TCHAR dividers[] = _T(" \t\n\r,./?\\|;:'\"~!#^&*()_-+=[{]}—\1"); tstring sentence = message; tstring result; - int len = (int)sentence.length(); - map sm; + map sm; //Find smiles for (size_t i = 0; i < sentence.length() - 1; i++) { @@ -116,7 +115,7 @@ tstring TalkBot::ReplaceAliases(const tstring &message) } } } - len = (int)sentence.length(); + int len = (int)sentence.length(); bool hadQuestionSigns = false; int it = 0; while (it != len) @@ -125,7 +124,7 @@ tstring TalkBot::ReplaceAliases(const tstring &message) { if (sentence[it] == _T('?')) hadQuestionSigns = true; - map::iterator smit; + map::iterator smit; if (sentence[it] == '\1') { smit = sm.find(it); @@ -515,7 +514,7 @@ void TalkBot::SplitAndSortWords(tstring sentence, vector& keywords, const TCHAR dividers[] = _T(" \t\n\r,./?\\|;:'\"~!#^&*()_-+=[{]}—"); int len = (int)sentence.length(); vector words; - map sm; + map sm; //Find smiles for (size_t i = 0; i < sentence.length() - 1; i++) { @@ -543,7 +542,7 @@ void TalkBot::SplitAndSortWords(tstring sentence, vector& keywords, { if (sentence[it] == _T('?')) hadQuestionSigns = true; - map::iterator smit; + map::iterator smit; if (_istspace(sentence[it]) && (smit = sm.find(it)) != sm.end()) words.push_back((*smit).second); it++; -- cgit v1.2.3