diff options
author | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-07-26 09:20:25 +0000 |
commit | 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch) | |
tree | 2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/MobileState | |
parent | a61c8728b379057fe7f0a0d86fe0b037598229dd (diff) |
less TCHARs:
- TCHAR is replaced with wchar_t everywhere;
- LPGENT replaced with either LPGENW or LPGEN;
- fixes for ANSI plugins that improperly used _t functions;
- TCHAR *t removed from MAllStrings;
- ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz*
git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MobileState')
-rw-r--r-- | plugins/MobileState/src/clients.h | 2 | ||||
-rw-r--r-- | plugins/MobileState/src/main.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MobileState/src/clients.h b/plugins/MobileState/src/clients.h index b9c87ae6e5..a7f6041ff2 100644 --- a/plugins/MobileState/src/clients.h +++ b/plugins/MobileState/src/clients.h @@ -19,7 +19,7 @@ #pragma once
-static const TCHAR *clients[] = {
+static const wchar_t *clients[] = {
L"android",
L"mobile",
L"pda",
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp index 7b1b1ebceb..b18452a7d8 100644 --- a/plugins/MobileState/src/main.cpp +++ b/plugins/MobileState/src/main.cpp @@ -57,11 +57,11 @@ bool hasMobileClient(MCONTACT hContact, LPARAM) ptrT client(db_get_tsa(hContact, proto, "MirVer"));
if (client) {
// Make client lower-case
- _tcslwr(client);
+ wcslwr(client);
// Find whether this client contain something from clients list
for (size_t i = 0; i < _countof(clients); i++)
- if (_tcsstr(client, clients[i]))
+ if (wcsstr(client, clients[i]))
return true;
}
|