change:细微改动。

This commit is contained in:
taynpg 2024-12-25 07:55:30 +08:00
parent 65f2505515
commit 1d86de126a

View File

@ -34,7 +34,7 @@ std::vector<ofString> COfStr::split(const ofString& input, const ofString& delim
ofString COfStr::trim(const ofString& input)
{
size_t start = input.find_first_not_of(ofT(" \t\n\r\f\v"));
if (start == std::string::npos) {
if (start == ofString::npos) {
return ofT("");
}
size_t end = input.find_last_not_of(ofT(" \t\n\r\f\v"));