From 159b565b390687258ee65a3b66596e118752063c Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 12:33:13 +0000 Subject: replace strcmp to mir_strcmp git-svn-id: http://svn.miranda-ng.org/main/trunk@13752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/chat.cpp | 2 +- protocols/Twitter/src/contacts.cpp | 4 ++-- protocols/Twitter/src/theme.cpp | 4 ++-- protocols/Twitter/src/twitter.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index 17ded4336d..5990cb63a1 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -59,7 +59,7 @@ void TwitterProto::UpdateChat(const twitter_user &update) int TwitterProto::OnChatOutgoing(WPARAM, LPARAM lParam) { GCHOOK *hook = reinterpret_cast(lParam); - if (strcmp(hook->pDest->pszModule, m_szModuleName)) + if (mir_strcmp(hook->pDest->pszModule, m_szModuleName)) return 0; switch (hook->pDest->iType) { diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index 674516a5b3..cea1ce17ef 100644 --- a/protocols/Twitter/src/contacts.cpp +++ b/protocols/Twitter/src/contacts.cpp @@ -197,7 +197,7 @@ int TwitterProto::OnContactDeleted(WPARAM hContact, LPARAM) bool TwitterProto::IsMyContact(MCONTACT hContact, bool include_chat) { char *proto = GetContactProto(hContact); - if (proto && strcmp(m_szModuleName, proto) == 0) { + if (proto && mir_strcmp(m_szModuleName, proto) == 0) { if (include_chat) return true; return !isChatRoom(hContact); @@ -213,7 +213,7 @@ MCONTACT TwitterProto::UsernameToHContact(const char *name) DBVARIANT dbv; if (!db_get_s(hContact, m_szModuleName, TWITTER_KEY_UN, &dbv)) { - if (strcmp(name, dbv.pszVal) == 0) { + if (mir_strcmp(name, dbv.pszVal) == 0) { db_free(&dbv); return hContact; } diff --git a/protocols/Twitter/src/theme.cpp b/protocols/Twitter/src/theme.cpp index 8a0d3960cc..50237a2ce6 100644 --- a/protocols/Twitter/src/theme.cpp +++ b/protocols/Twitter/src/theme.cpp @@ -43,7 +43,7 @@ void InitIcons(void) HANDLE GetIconHandle(const char* name) { for (size_t i = 0; i < SIZEOF(icons); i++) - if (strcmp(icons[i].szName, name) == 0) + if (mir_strcmp(icons[i].szName, name) == 0) return hIconLibItem[i]; return 0; @@ -61,7 +61,7 @@ static TwitterProto * GetInstanceByHContact(MCONTACT hContact) return 0; for (int i = 0; i < g_Instances.getCount(); i++) - if (!strcmp(proto, g_Instances[i].m_szModuleName)) + if (!mir_strcmp(proto, g_Instances[i].m_szModuleName)) return &g_Instances[i]; return 0; diff --git a/protocols/Twitter/src/twitter.cpp b/protocols/Twitter/src/twitter.cpp index 4a321675e0..98da36c8d5 100644 --- a/protocols/Twitter/src/twitter.cpp +++ b/protocols/Twitter/src/twitter.cpp @@ -381,7 +381,7 @@ static char *month_names[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", int parse_month(const char *m) { for (int i = 0; i < 12; i++) - if (strcmp(month_names[i], m) == 0) + if (mir_strcmp(month_names[i], m) == 0) return i; return -1; -- cgit v1.2.3