From 1f0b0e7a2047320d6808ac565eb35d66905252fd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Mar 2019 17:12:17 +0300 Subject: code cleaning for old shitty helper --- plugins/Variables/src/parse_system.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Variables/src/parse_system.cpp') diff --git a/plugins/Variables/src/parse_system.cpp b/plugins/Variables/src/parse_system.cpp index e3d7d63ab9..38a00e8d83 100644 --- a/plugins/Variables/src/parse_system.cpp +++ b/plugins/Variables/src/parse_system.cpp @@ -156,7 +156,7 @@ static wchar_t* parseDirectory(ARGUMENTSINFO *ai) int depth = 0; if (ai->argc == 3) - depth = ttoi(ai->argv.w[2]); + depth = _wtoi(ai->argv.w[2]); if (depth <= 0) return mir_wstrdup(ai->argv.w[1]); @@ -192,7 +192,7 @@ static wchar_t* parseDirectory2(ARGUMENTSINFO *ai) int depth = 1; if (ai->argc == 3) - depth = ttoi(ai->argv.w[2]); + depth = _wtoi(ai->argv.w[2]); if (depth <= 0) return nullptr; @@ -520,7 +520,7 @@ static wchar_t* parseTimestamp2Date(ARGUMENTSINFO *ai) SYSTEMTIME sysTime; wchar_t *szFormat; - time_t timestamp = ttoi(ai->argv.w[1]); + time_t timestamp = _wtoi(ai->argv.w[1]); if (timestamp == 0) return nullptr; @@ -551,7 +551,7 @@ static wchar_t* parseTimestamp2Time(ARGUMENTSINFO *ai) return nullptr; SYSTEMTIME sysTime; - time_t timestamp = ttoi(ai->argv.w[1]); + time_t timestamp = _wtoi(ai->argv.w[1]); if (timestamp == 0) return nullptr; @@ -592,7 +592,7 @@ static wchar_t* parseTextFile(ARGUMENTSINFO *ai) return nullptr; } - int lineNo = ttoi(ai->argv.w[2]); + int lineNo = _wtoi(ai->argv.w[2]); int lineCount, csz; unsigned int icur, bufSz; DWORD readSz, totalReadSz; -- cgit v1.2.3