Prefer std::string::clear where possible (#2467)
This is somewhat more clear and is declared noexcept.
This commit is contained in:
@ -109,7 +109,7 @@ static bool parse_string(const char* pstr, char delim, strlist_t& strlist)
|
||||
strAll = strAll.substr(pos + 1);
|
||||
}else{
|
||||
strlist.push_back(strAll);
|
||||
strAll.erase();
|
||||
strAll.clear();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user