summaryrefslogtreecommitdiff
path: root/plugins/helpers/gen_helpers.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-01-14 17:25:20 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-01-14 17:25:20 +0000
commit53ff4acbf341b20b772bdd87d06fed30e0d1b28a (patch)
treeaf2481bf55255c92f40254b6350cf43847ffa3dd /plugins/helpers/gen_helpers.cpp
parent127744a38a4bad16aa1cbf20c3824345a9644c5a (diff)
minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@7647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/helpers/gen_helpers.cpp')
-rw-r--r--plugins/helpers/gen_helpers.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp
index 1174f1fdeb..eb2940adb2 100644
--- a/plugins/helpers/gen_helpers.cpp
+++ b/plugins/helpers/gen_helpers.cpp
@@ -126,13 +126,8 @@ int ttoi(TCHAR *string)
TCHAR *itot(int num)
{
-
- char tRes[32];
-
+ TCHAR tRes[32];
// check this
- _itoa(num, tRes, 10);
-
-
- return mir_a2t(tRes);
-
+ _itot(num, tRes, 10);
+ return mir_tstrdup(tRes);
}