Prefer std::string::clear where possible (#2467)

This is somewhat more clear and is declared noexcept.
This commit is contained in:
Andrew Gaul
2024-06-10 23:36:49 +09:00
committed by GitHub
parent ba7b2ef9f0
commit ebae5a302f
9 changed files with 23 additions and 23 deletions

View File

@ -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;