summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_conv.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-08-11 08:31:53 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-08-11 08:31:53 +0000
commit65d90486d32affb97b6803abdb77fe09252d8c98 (patch)
tree8baa23155be080b2c1246dbfe5f28f5867812b58 /plugins/Weather/src/weather_conv.cpp
parentf074f54bcb0f6e01dbb0cda4f0727ce8043b399b (diff)
- IEView: Ressource fixes
- Weather: Fix for a rare message box git-svn-id: http://svn.miranda-ng.org/main/trunk@5643 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_conv.cpp')
-rw-r--r--plugins/Weather/src/weather_conv.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Weather/src/weather_conv.cpp b/plugins/Weather/src/weather_conv.cpp
index 060ea0b578..b26e15cd32 100644
--- a/plugins/Weather/src/weather_conv.cpp
+++ b/plugins/Weather/src/weather_conv.cpp
@@ -322,10 +322,8 @@ static const WORD statusValue[10] = { LIGHT, FOG, SSHOWER, SNOW, RSHOWER, RAIN,
WORD GetIcon(const TCHAR* cond, WIDATA *Data)
{
- int i;
-
// set the icon using ini
- for (i=0; i<10; i++)
+ for (int i=0; i<10; i++)
if ( IsContainedInCondList(cond, &Data->CondList[i]))
return statusValue[i];
@@ -389,7 +387,7 @@ WORD GetIcon(const TCHAR* cond, WIDATA *Data)
}
// set the icon using langpack
- for (i=0; i < 9; i++) {
+ for (int i=0; i < 9; i++) {
TCHAR LangPackStr[64], LangPackStr1[128];
int j = 0;
do {