From 53ff4acbf341b20b772bdd87d06fed30e0d1b28a Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 14 Jan 2014 17:25:20 +0000 Subject: minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@7647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/helpers/gen_helpers.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/helpers') 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); } -- cgit v1.2.3