diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 19:23:27 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 19:23:27 +0000 |
commit | 1eb922f8075c53a1a8487045b096693bd27b56dd (patch) | |
tree | 2e4ec55f37aaa42d1f93d8a58fcde6c74b2025bb /plugins/Weather/src/weather_conv.cpp | |
parent | e2d7ebd6315a810bd4ea54f1088b84d09c3ca5d2 (diff) |
replace _tcsicmp to mir_tstrcmpi
git-svn-id: http://svn.miranda-ng.org/main/trunk@13761 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_conv.cpp')
-rw-r--r-- | plugins/Weather/src/weather_conv.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/Weather/src/weather_conv.cpp b/plugins/Weather/src/weather_conv.cpp index b8cbb97f95..7d73d76fed 100644 --- a/plugins/Weather/src/weather_conv.cpp +++ b/plugins/Weather/src/weather_conv.cpp @@ -100,8 +100,8 @@ void GetTemp(TCHAR *tempchar, TCHAR *unit, TCHAR* str) temp = _ttof(tempchar);
// convert all to F first
- if ( !_tcsicmp(unit, _T("C"))) temp = (temp*9/5)+32;
- else if ( !_tcsicmp(unit, _T("K"))) temp = ((temp-273.15)*9/5)+32;
+ if ( !mir_tstrcmpi(unit, _T("C"))) temp = (temp*9/5)+32;
+ else if ( !mir_tstrcmpi(unit, _T("K"))) temp = ((temp-273.15)*9/5)+32;
// convert to apporiate unit
switch (opt.tUnit) {
@@ -143,17 +143,17 @@ void GetPressure(TCHAR *tempchar, TCHAR *unit, TCHAR* str) }
// convert all to mb first
- if ( !_tcsicmp(unit, _T("KPA")))
+ if ( !mir_tstrcmpi(unit, _T("KPA")))
tempunit = (double)output * 10;
- else if ( !_tcsicmp(unit, _T("HPA")))
+ else if ( !mir_tstrcmpi(unit, _T("HPA")))
tempunit = (double)output;
- else if ( !_tcsicmp(unit, _T("MB")))
+ else if ( !mir_tstrcmpi(unit, _T("MB")))
tempunit = (double)output;
- else if ( !_tcsicmp(unit, _T("IN")))
+ else if ( !mir_tstrcmpi(unit, _T("IN")))
tempunit = (double)output * 33.86388;
- else if ( !_tcsicmp(unit, _T("MM")))
+ else if ( !mir_tstrcmpi(unit, _T("MM")))
tempunit = (double)output * 1.33322;
- else if ( !_tcsicmp(unit, _T("TORR")))
+ else if ( !mir_tstrcmpi(unit, _T("TORR")))
tempunit = (double)output * 1.33322;
// convert to apporiate unit
@@ -200,13 +200,13 @@ void GetSpeed(TCHAR *tempchar, TCHAR *unit, TCHAR *str) return;
// convert all to m/s first
- if ( !_tcsicmp(unit, _T("KM/H")))
+ if ( !mir_tstrcmpi(unit, _T("KM/H")))
tempunit /= 3.6;
-// else if ( !_tcsicmp(unit, _T("M/S"))
+// else if ( !mir_tstrcmpi(unit, _T("M/S"))
// tempunit = tempunit;
- else if ( !_tcsicmp(unit, _T("MPH")))
+ else if ( !mir_tstrcmpi(unit, _T("MPH")))
tempunit *= 0.44704;
- else if ( !_tcsicmp(unit, _T("KNOTS")))
+ else if ( !mir_tstrcmpi(unit, _T("KNOTS")))
tempunit *= 0.514444;
// convert to apporiate unit
@@ -249,9 +249,9 @@ void GetDist(TCHAR *tempchar, TCHAR *unit, TCHAR *str) }
// convert all to km first
- if ( !_tcsicmp(unit, _T("KM")))
+ if ( !mir_tstrcmpi(unit, _T("KM")))
tempunit = (double)output;
- else if ( !_tcsicmp(unit, _T("MILES")))
+ else if ( !mir_tstrcmpi(unit, _T("MILES")))
tempunit = (double)output * 1.609;
// convert to apporiate unit
@@ -289,9 +289,9 @@ void GetElev(TCHAR *tempchar, TCHAR *unit, TCHAR *str) }
// convert all to m first
- if ( !_tcsicmp(unit, _T("M")))
+ if ( !mir_tstrcmpi(unit, _T("M")))
tempunit = (double)output;
- else if ( !_tcsicmp(unit, _T("FT")))
+ else if ( !mir_tstrcmpi(unit, _T("FT")))
tempunit = (double)output / 3.28;
// convert to apporiate unit
|