summaryrefslogtreecommitdiff
path: root/plugins/Boltun
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-26 18:59:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-26 18:59:00 +0000
commit9fb4afe66dca4f6b3a73c442a8bbcf5e84674b00 (patch)
treef9bee1d3c70ae44a7a177661eb8dd902c1d1c960 /plugins/Boltun
parent404e500ea39d5bd24b46cb214ef731f20c515867 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15038 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Boltun')
-rw-r--r--plugins/Boltun/src/Engine/Mind.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/Boltun/src/Engine/Mind.cpp b/plugins/Boltun/src/Engine/Mind.cpp
index 11e636cd81..0acecb52a9 100644
--- a/plugins/Boltun/src/Engine/Mind.cpp
+++ b/plugins/Boltun/src/Engine/Mind.cpp
@@ -245,17 +245,10 @@ void Mind::Load(tstring filename)
toLowerStr(c);
{
std::transform(s1.begin(), s1.end(), s1.begin(), ::tolower);
- int count1 = (int)s1.length();
- TCHAR *c = new TCHAR[count1 + 1];
- mir_tstrcpy(c, s1.c_str());
- CharLower(c);
- s1 = c;
- delete c;
vector<tstring> strs = Parse(s1);
- tstring sc(c);
- data->raliases.insert(make_pair(sc, strs));
+ data->raliases.insert(make_pair(s1, strs));
for (vector<tstring>::const_iterator it = strs.begin(); it != strs.end(); ++it)
- data->aliases.insert(make_pair(*it, sc));
+ data->aliases.insert(make_pair(*it, s1));
}
break;