summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/parse_system.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-11 17:12:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-11 17:12:17 +0300
commit1f0b0e7a2047320d6808ac565eb35d66905252fd (patch)
tree127467c2414340ff442a517103f7937bfe3958e0 /plugins/Variables/src/parse_system.cpp
parent5bbeb86b16369c9978d006b445b61a941895ccf3 (diff)
code cleaning for old shitty helper
Diffstat (limited to 'plugins/Variables/src/parse_system.cpp')
-rw-r--r--plugins/Variables/src/parse_system.cpp10
1 files changed, 5 insertions, 5 deletions
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;