summaryrefslogtreecommitdiff
path: root/plugins/TipperYM
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 12:33:13 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 12:33:13 +0000
commit159b565b390687258ee65a3b66596e118752063c (patch)
tree91105378fcb9e030ba4a7f6572c4ea307cb8c8d6 /plugins/TipperYM
parent7f4d529b59698d7eb2403bd1f9088a5aa7fa9080 (diff)
replace strcmp to mir_strcmp
git-svn-id: http://svn.miranda-ng.org/main/trunk@13752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM')
-rw-r--r--plugins/TipperYM/src/mir_smileys.cpp2
-rw-r--r--plugins/TipperYM/src/popwin.cpp2
-rw-r--r--plugins/TipperYM/src/preset_items.cpp4
-rw-r--r--plugins/TipperYM/src/subst.cpp4
-rw-r--r--plugins/TipperYM/src/tipper.cpp2
-rw-r--r--plugins/TipperYM/src/translations.cpp2
6 files changed, 8 insertions, 8 deletions
diff --git a/plugins/TipperYM/src/mir_smileys.cpp b/plugins/TipperYM/src/mir_smileys.cpp
index 53cc09fe46..a6ac7e8cd9 100644
--- a/plugins/TipperYM/src/mir_smileys.cpp
+++ b/plugins/TipperYM/src/mir_smileys.cpp
@@ -315,7 +315,7 @@ SortedList *ReplaceSmileys(const TCHAR *text, int text_size, const char *protoco
char smileyProto[64];
if (protocol == NULL)
strncpy(smileyProto, "tipper", sizeof(smileyProto) - 1);
- else if (strcmp(protocol, META_PROTO) == 0)
+ else if (mir_strcmp(protocol, META_PROTO) == 0)
strncpy(smileyProto, "tipper", sizeof(smileyProto) - 1);
else
strncpy(smileyProto, protocol, sizeof(smileyProto) - 1);
diff --git a/plugins/TipperYM/src/popwin.cpp b/plugins/TipperYM/src/popwin.cpp
index 495957a6ae..f20efb465b 100644
--- a/plugins/TipperYM/src/popwin.cpp
+++ b/plugins/TipperYM/src/popwin.cpp
@@ -337,7 +337,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
int iXstatus = db_get_b(pwd->hContact, szProto, "XStatusId", 0);
if (iXstatus) {
char szIconProto[64];
- if (strcmp(szProto, META_PROTO) != 0)
+ if (mir_strcmp(szProto, META_PROTO) != 0)
strncpy(szIconProto, szProto, sizeof(szIconProto) - 1);
else if (!db_get_s(pwd->hContact, szProto, "XStatusProto", &dbv)) {
strncpy(szIconProto, dbv.pszVal, sizeof(szIconProto) - 1);
diff --git a/plugins/TipperYM/src/preset_items.cpp b/plugins/TipperYM/src/preset_items.cpp
index ba5f179f4d..d6b14e8f38 100644
--- a/plugins/TipperYM/src/preset_items.cpp
+++ b/plugins/TipperYM/src/preset_items.cpp
@@ -105,7 +105,7 @@ PRESETITEM *GetPresetItemByName(char *szName)
{
for (int i = 0; presetItems[i].szID; i++)
{
- if (strcmp(presetItems[i].szID, szName) == 0)
+ if (mir_strcmp(presetItems[i].szID, szName) == 0)
return &presetItems[i];
}
@@ -117,7 +117,7 @@ PRESETSUBST *GetPresetSubstByName(char *szName)
if (!szName) return NULL;
for (int i = 0; presetSubsts[i].szID; i++)
{
- if (strcmp(presetSubsts[i].szID, szName) == 0)
+ if (mir_strcmp(presetSubsts[i].szID, szName) == 0)
return &presetSubsts[i];
}
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp
index 31fa26a4a3..7758845d27 100644
--- a/plugins/TipperYM/src/subst.cpp
+++ b/plugins/TipperYM/src/subst.cpp
@@ -217,7 +217,7 @@ TCHAR* GetStatusMessageText(MCONTACT hContact)
char *szProto = GetContactProto(hContact);
if (szProto) {
- if (!strcmp(szProto, META_PROTO))
+ if (!mir_strcmp(szProto, META_PROTO))
hContact = db_mc_getMostOnline(hContact);
else {
WORD wStatus = (int)CallProtoService(szProto, PS_GETSTATUS, 0, 0);
@@ -360,7 +360,7 @@ bool GetSysSubstText(MCONTACT hContact, TCHAR *swzRawSpec, TCHAR *buff, int buff
MCONTACT hTmpContact = hContact;
char *szProto = GetContactProto(hContact);
- if (szProto && !strcmp(szProto, META_PROTO)) {
+ if (szProto && !mir_strcmp(szProto, META_PROTO)) {
iNumber = db_mc_getSubCount(hContact);
hTmpContact = db_mc_getSub(hContact, 0);
}
diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp
index ca273e1f13..8ae1171ed2 100644
--- a/plugins/TipperYM/src/tipper.cpp
+++ b/plugins/TipperYM/src/tipper.cpp
@@ -95,7 +95,7 @@ int ReloadFont(WPARAM wParam, LPARAM lParam)
int SettingChanged(WPARAM hContact, LPARAM lParam)
{
DBCONTACTWRITESETTING *dcws = (DBCONTACTWRITESETTING *)lParam;
- if (strcmp(dcws->szModule, "CList") != 0 || strcmp(dcws->szSetting, "State") != 0)
+ if (mir_strcmp(dcws->szModule, "CList") != 0 || mir_strcmp(dcws->szSetting, "State") != 0)
return 0;
// clist hiding
diff --git a/plugins/TipperYM/src/translations.cpp b/plugins/TipperYM/src/translations.cpp
index 85a0473c92..87397c2678 100644
--- a/plugins/TipperYM/src/translations.cpp
+++ b/plugins/TipperYM/src/translations.cpp
@@ -206,7 +206,7 @@ TCHAR *WordToCountry(MCONTACT hContact, const char *szModuleName, const char *sz
WORD cid = (WORD)db_get_w(hContact, szModuleName, szSettingName, (WORD)-1);
if (cid != (WORD)-1 && ServiceExists(MS_UTILS_GETCOUNTRYBYNUMBER) && (szCountryName = (char *)CallService(MS_UTILS_GETCOUNTRYBYNUMBER, cid, 0)) != 0)
{
- if (strcmp(szCountryName, "Unknown") == 0)
+ if (mir_strcmp(szCountryName, "Unknown") == 0)
return 0;
a2t(szCountryName, buff, bufflen);
buff[bufflen - 1] = 0;