diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-11 17:12:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-11 17:12:17 +0300 |
commit | 1f0b0e7a2047320d6808ac565eb35d66905252fd (patch) | |
tree | 127467c2414340ff442a517103f7937bfe3958e0 /plugins/Variables/src/parse_miranda.cpp | |
parent | 5bbeb86b16369c9978d006b445b61a941895ccf3 (diff) |
code cleaning for old shitty helper
Diffstat (limited to 'plugins/Variables/src/parse_miranda.cpp')
-rw-r--r-- | plugins/Variables/src/parse_miranda.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/Variables/src/parse_miranda.cpp b/plugins/Variables/src/parse_miranda.cpp index 037cfd327e..2bd57f5804 100644 --- a/plugins/Variables/src/parse_miranda.cpp +++ b/plugins/Variables/src/parse_miranda.cpp @@ -24,7 +24,7 @@ static wchar_t* parseCodeToStatus(ARGUMENTSINFO *ai) if (ai->argc != 2)
return nullptr;
- unsigned int status = ttoi(ai->argv.w[1]);
+ unsigned int status = _wtoi(ai->argv.w[1]);
wchar_t *szStatus = Clist_GetStatusModeDescription(status, 0);
if (szStatus != nullptr)
return mir_wstrdup(szStatus);
@@ -84,14 +84,14 @@ static wchar_t* parseContact(ARGUMENTSINFO *ai) if (*ai->argv.w[3] != 'r') // random contact
n = -1;
else
- n = ttoi(ai->argv.w[3]) - 1;
+ n = _wtoi(ai->argv.w[3]) - 1;
}
MCONTACT hContact = getContactFromString(ai->argv.w[1], getContactInfoFlags(ai->argv.w[2]), n);
if (hContact == INVALID_CONTACT_ID)
return nullptr;
- log_debugA("contact: %x", hContact);
+ log_debug(0, "contact: %x", hContact);
return encodeContactToString(hContact);
}
@@ -101,7 +101,7 @@ static wchar_t* parseContactCount(ARGUMENTSINFO *ai) return nullptr;
int count = getContactFromString(ai->argv.w[1], CI_NEEDCOUNT | getContactInfoFlags(ai->argv.w[2]));
- return itot(count);
+ return _itow(count);
}
static wchar_t* parseContactInfo(ARGUMENTSINFO *ai)
@@ -151,13 +151,13 @@ static wchar_t* getDBSetting(MCONTACT hContact, char* module, char* setting, wch wchar_t *var = nullptr;
switch (dbv.type) {
case DBVT_BYTE:
- var = itot(dbv.bVal);
+ var = _itow(dbv.bVal);
break;
case DBVT_WORD:
- var = itot(dbv.wVal);
+ var = _itow(dbv.wVal);
break;
case DBVT_DWORD:
- var = itot(dbv.dVal);
+ var = _itow(dbv.dVal);
break;
case DBVT_ASCIIZ:
var = mir_a2u(dbv.pszVal);
|