[Projct64] Clean up std string.cpp

This commit is contained in:
zilmar 2015-11-30 06:21:47 +11:00
parent 832248d818
commit bc8d8b8fa1
2 changed files with 208 additions and 207 deletions

View File

@ -130,7 +130,8 @@ stdstr & stdstr::TrimLeft (const char * chars2remove)
if (pos != std::string::npos)
{
erase(0, pos);
} else {
}
else {
erase(begin(), end()); // make empty
}
}
@ -145,7 +146,8 @@ stdstr & stdstr::TrimRight (const char * chars2remove)
if (pos != std::string::npos)
{
erase(pos + 1);
} else {
}
else {
erase(begin(), end()); // make empty
}
}

View File

@ -36,7 +36,6 @@ public:
std::wstring ToUTF16(bool * bSuccess = NULL);
void ArgFormat(const char * strFormat, va_list & args);
};
class stdstr_f : public stdstr