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 --- plugins/IEView/src/HTMLBuilder.cpp | 6 +++--- plugins/IEView/src/Options.cpp | 2 +- plugins/IEView/src/Template.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/IEView/src') diff --git a/plugins/IEView/src/HTMLBuilder.cpp b/plugins/IEView/src/HTMLBuilder.cpp index de2e5e7b61..3a4031f2ec 100644 --- a/plugins/IEView/src/HTMLBuilder.cpp +++ b/plugins/IEView/src/HTMLBuilder.cpp @@ -127,7 +127,7 @@ char* HTMLBuilder::getRealProto(MCONTACT hContact) return NULL; char *szProto = mir_strdup(GetContactProto(hContact)); - if (szProto != NULL && !strcmp(szProto, META_PROTO)) { + if (szProto != NULL && !mir_strcmp(szProto, META_PROTO)) { hContact = db_mc_getMostOnline(hContact); if (hContact != NULL) replaceStr(szProto, GetContactProto(hContact)); @@ -137,7 +137,7 @@ char* HTMLBuilder::getRealProto(MCONTACT hContact) char* HTMLBuilder::getRealProto(MCONTACT hContact, const char *szProto) { - if (szProto != NULL && !strcmp(szProto, META_PROTO)) { + if (szProto != NULL && !mir_strcmp(szProto, META_PROTO)) { hContact = db_mc_getMostOnline(hContact); if (hContact != NULL) return mir_strdup(GetContactProto(hContact)); @@ -148,7 +148,7 @@ char* HTMLBuilder::getRealProto(MCONTACT hContact, const char *szProto) MCONTACT HTMLBuilder::getRealContact(MCONTACT hContact) { char *szProto = GetContactProto(hContact); - if (szProto != NULL && !strcmp(szProto, META_PROTO)) + if (szProto != NULL && !mir_strcmp(szProto, META_PROTO)) hContact = db_mc_getMostOnline(hContact); return hContact; } diff --git a/plugins/IEView/src/Options.cpp b/plugins/IEView/src/Options.cpp index 7d5528eb9d..bd63b8a9aa 100644 --- a/plugins/IEView/src/Options.cpp +++ b/plugins/IEView/src/Options.cpp @@ -1489,7 +1489,7 @@ void Options::init() proto = new ProtocolSettings("_default_"); proto->setSRMMEnable(true); } - else if (strcmp(pProtos[i - 1]->szModuleName, META_PROTO)) { + else if (mir_strcmp(pProtos[i - 1]->szModuleName, META_PROTO)) { if ((CallProtoService(pProtos[i - 1]->szModuleName, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_IM) == 0) continue; diff --git a/plugins/IEView/src/Template.cpp b/plugins/IEView/src/Template.cpp index d405277f28..e9a6271fde 100644 --- a/plugins/IEView/src/Template.cpp +++ b/plugins/IEView/src/Template.cpp @@ -113,7 +113,7 @@ Template* Template::getNext() bool Template::equals(const char *name) { - if (!strcmp(name, this->name)) + if (!mir_strcmp(name, this->name)) return true; return false; @@ -252,7 +252,7 @@ TemplateMap* TemplateMap::add(const char *id, const char *filename) { TemplateMap *map; for (map = mapList; map != NULL; map = map->next) { - if (!strcmp(map->name, id)) { + if (!mir_strcmp(map->name, id)) { map->clear(); map->setFilename(filename); return map; @@ -425,7 +425,7 @@ Template* TemplateMap::getTemplate(const char *text) Template* TemplateMap::getTemplate(const char *proto, const char *text) { for (TemplateMap *ptr = mapList; ptr != NULL; ptr = ptr->next) - if (!strcmp(ptr->name, proto)) + if (!mir_strcmp(ptr->name, proto)) return ptr->getTemplate(text); return NULL; @@ -434,7 +434,7 @@ Template* TemplateMap::getTemplate(const char *proto, const char *text) TemplateMap* TemplateMap::getTemplateMap(const char *proto) { for (TemplateMap *ptr = mapList; ptr != NULL; ptr = ptr->next) - if (!strcmp(ptr->name, proto)) + if (!mir_strcmp(ptr->name, proto)) return ptr; return NULL; -- cgit v1.2.3