Final 0.6.11 version; only trivial changes

This commit is contained in:
srs5694
2010-09-25 20:39:52 -04:00
parent 5a081757ea
commit ab4b043839
11 changed files with 36 additions and 21 deletions

View File

@@ -251,10 +251,10 @@ uint64_t GetInt(const string & argument, int itemNum) {
while (itemNum-- > 0) {
startPos = endPos + 1;
endPos = argument.find(':', startPos);
endPos = (int) argument.find(':', startPos);
}
if (endPos == (int) string::npos)
endPos = argument.length();
endPos = (int) argument.length();
endPos--;
istringstream inString(argument.substr(startPos, endPos - startPos + 1));
@@ -268,10 +268,10 @@ string GetString(const string & argument, int itemNum) {
while (itemNum-- > 0) {
startPos = endPos + 1;
endPos = argument.find(':', startPos);
endPos = (int) argument.find(':', startPos);
}
if (endPos == (int) string::npos)
endPos = argument.length();
endPos = (int) argument.length();
endPos--;
return argument.substr(startPos, endPos - startPos + 1);