Changeset 1889 for code/trunk/src/core/ConfigFileManager.cc
- Timestamp:
- Oct 6, 2008, 1:05:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/ConfigFileManager.cc
r1795 r1889 255 255 if (!isEmpty(temp) && !isComment(temp)) 256 256 { 257 unsigned int pos1 = temp.find('[');257 size_t pos1 = temp.find('['); 258 258 if (pos1 == 0) pos1 = line.find('['); else pos1 = std::string::npos; 259 unsigned int pos2 = line.find(']');259 size_t pos2 = line.find(']'); 260 260 261 261 if (pos1 != std::string::npos && pos2 != std::string::npos && pos2 > pos1 + 1) … … 282 282 else 283 283 { 284 unsigned int pos1 = line.find('=');284 size_t pos1 = line.find('='); 285 285 286 286 if (pos1 != std::string::npos && pos1 > 0) 287 287 { 288 288 // New entry 289 unsigned int pos2 = line.find('[');290 unsigned int pos3 = line.find(']');291 unsigned int commentposition = getNextCommentPosition(line, pos1 + 1);289 size_t pos2 = line.find('['); 290 size_t pos3 = line.find(']'); 291 size_t commentposition = getNextCommentPosition(line, pos1 + 1); 292 292 while (isBetweenQuotes(line, commentposition)) 293 293 {
Note: See TracChangeset
for help on using the changeset viewer.