Mercurial > audlegacy
comparison Plugins/Input/modplug/archive/open.cpp @ 701:d539e5c5f730 trunk
[svn] Fixes of the remaining GCC 4.1 warnings from external contributor Diego "Flameeyes" Petteno (Gentoo).
| author | chainsaw |
|---|---|
| date | Sun, 26 Feb 2006 13:08:35 -0800 |
| parents | 37316876ef6e |
| children |
comparison
equal
deleted
inserted
replaced
| 700:99382cddf771 | 701:d539e5c5f730 |
|---|---|
| 15 { | 15 { |
| 16 string lExt; | 16 string lExt; |
| 17 uint32 lPos; | 17 uint32 lPos; |
| 18 | 18 |
| 19 lPos = aFileName.find_last_of('.'); | 19 lPos = aFileName.find_last_of('.'); |
| 20 if(lPos < 0) | 20 if(lPos > aFileName.length()) |
| 21 return NULL; | 21 return NULL; |
| 22 lExt = aFileName.substr(lPos); | 22 lExt = aFileName.substr(lPos); |
| 23 for(uint32 i = 0; i < lExt.length(); i++) | 23 for(uint32 i = 0; i < lExt.length(); i++) |
| 24 lExt[i] = tolower(lExt[i]); | 24 lExt[i] = tolower(lExt[i]); |
| 25 | 25 |
| 65 { | 65 { |
| 66 string lExt; | 66 string lExt; |
| 67 uint32 lPos; | 67 uint32 lPos; |
| 68 | 68 |
| 69 lPos = aFileName.find_last_of('.'); | 69 lPos = aFileName.find_last_of('.'); |
| 70 if(lPos < 0) | 70 if(lPos > aFileName.length()) |
| 71 return false; | 71 return false; |
| 72 lExt = aFileName.substr(lPos); | 72 lExt = aFileName.substr(lPos); |
| 73 for(uint32 i = 0; i < lExt.length(); i++) | 73 for(uint32 i = 0; i < lExt.length(); i++) |
| 74 lExt[i] = tolower(lExt[i]); | 74 lExt[i] = tolower(lExt[i]); |
| 75 | 75 |
