Changeset 2560
- Timestamp:
- Jan 1, 2009, 3:21:28 PM (16 years ago)
- Location:
- code/branches/presentation/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/core/Language.cc
r2485 r2560 232 232 if ((lineString != "") && (lineString.size() > 0)) 233 233 { 234 unsigned int pos = lineString.find('=');234 size_t pos = lineString.find('='); 235 235 236 236 // Check if the length is at least 3 and if there's an entry before and behind the = … … 278 278 if ((lineString != "") && (lineString.size() > 0)) 279 279 { 280 unsigned int pos = lineString.find('=');280 size_t pos = lineString.find('='); 281 281 282 282 // Check if the length is at least 3 and if there's an entry before and behind the = -
code/branches/presentation/src/util/String.cc
r2171 r2560 84 84 { 85 85 size_t pos1 = 0; 86 int pos2 = str.size() - 1;86 int pos2 = (int)(str.size() - 1); 87 87 for (; pos1 < str.size() && (str[pos1] == ' ' || str[pos1] == '\t' || str[pos1] == '\n'); pos1++); 88 88 for (; pos2 > 0 && (str[pos2] == ' ' || str[pos2] == '\t' || str[pos2] == '\n'); pos2--);
Note: See TracChangeset
for help on using the changeset viewer.