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/Weather/src/weather_contacts.cpp | 2 +- plugins/Weather/src/weather_data.cpp | 2 +- plugins/Weather/src/weather_icons.cpp | 2 +- plugins/Weather/src/weather_ini.cpp | 14 +++++++------- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'plugins/Weather') diff --git a/plugins/Weather/src/weather_contacts.cpp b/plugins/Weather/src/weather_contacts.cpp index 1949517426..abe63173db 100644 --- a/plugins/Weather/src/weather_contacts.cpp +++ b/plugins/Weather/src/weather_contacts.cpp @@ -477,5 +477,5 @@ int ContactDeleted(WPARAM wParam, LPARAM lParam) BOOL IsMyContact(MCONTACT hContact) { const char* szProto = GetContactProto(hContact); - return szProto != NULL && strcmp(WEATHERPROTONAME, szProto) == 0; + return szProto != NULL && mir_strcmp(WEATHERPROTONAME, szProto) == 0; } diff --git a/plugins/Weather/src/weather_data.cpp b/plugins/Weather/src/weather_data.cpp index deb04358ec..1908fe3115 100644 --- a/plugins/Weather/src/weather_data.cpp +++ b/plugins/Weather/src/weather_data.cpp @@ -448,7 +448,7 @@ void DBDataManage(MCONTACT hContact, WORD Mode, WPARAM wParam, LPARAM lParam) case WDBM_DETAILDISPLAY: // skip the "WeatherInfo" variable - if (!strcmp(szSetting, "WeatherInfo") || !strcmp(szSetting, "Ignore") || szSetting[0] == '#') + if (!mir_strcmp(szSetting, "WeatherInfo") || !mir_strcmp(szSetting, "Ignore") || szSetting[0] == '#') continue; HWND hList = GetDlgItem((HWND)wParam, IDC_DATALIST); diff --git a/plugins/Weather/src/weather_icons.cpp b/plugins/Weather/src/weather_icons.cpp index 5cc7f5b907..85884aa983 100644 --- a/plugins/Weather/src/weather_icons.cpp +++ b/plugins/Weather/src/weather_icons.cpp @@ -52,7 +52,7 @@ HICON LoadIconEx(const char* name, BOOL big) HANDLE GetIconHandle(const char* name) { for (int i=0; i < SIZEOF(iconList); i++) - if (strcmp(iconList[i].szName, name) == 0) + if (mir_strcmp(iconList[i].szName, name) == 0) return iconList[i].hIcolib; return NULL; diff --git a/plugins/Weather/src/weather_ini.cpp b/plugins/Weather/src/weather_ini.cpp index 7c69dc38f4..0d0678fd15 100644 --- a/plugins/Weather/src/weather_ini.cpp +++ b/plugins/Weather/src/weather_ini.cpp @@ -257,19 +257,19 @@ void LoadStationData(TCHAR *pszFile, TCHAR *pszShortFile, WIDATA *Data) TrimString(Line); // make sure it is a valid weather protocol ini file - if ( !strcmp(Line, "[Weather 0.3.x Update Data]")) + if ( !mir_strcmp(Line, "[Weather 0.3.x Update Data]")) Data->InternalVer = 1; - else if ( !strcmp(Line, "[Weather 0.3.x Update Data 1.1]")) + else if ( !mir_strcmp(Line, "[Weather 0.3.x Update Data 1.1]")) Data->InternalVer = 2; - else if ( !strcmp(Line, "[Weather 0.3.x Update Data 1.1a]")) + else if ( !mir_strcmp(Line, "[Weather 0.3.x Update Data 1.1a]")) Data->InternalVer = 3; - else if ( !strcmp(Line, "[Weather 0.3.x Update Data 1.2]")) + else if ( !mir_strcmp(Line, "[Weather 0.3.x Update Data 1.2]")) Data->InternalVer = 4; - else if ( !strcmp(Line, "[Weather 0.3.x Update Data 1.3]")) + else if ( !mir_strcmp(Line, "[Weather 0.3.x Update Data 1.3]")) Data->InternalVer = 5; - else if ( !strcmp(Line, "[Weather 0.3.x Update Data 1.4]")) + else if ( !mir_strcmp(Line, "[Weather 0.3.x Update Data 1.4]")) Data->InternalVer = 6; - else if ( !strcmp(Line, "[Weather 0.3.x Update Data 1.5]")) + else if ( !mir_strcmp(Line, "[Weather 0.3.x Update Data 1.5]")) Data->InternalVer = 7; else { -- cgit v1.2.3