Remove CStr::Left

It was only a wrapper around `std::string::substr`. In some places it's
better to use `std::string::starts_with`.
This commit is contained in:
phosit
2026-08-24 13:34:37 +02:00
parent d8bb617962
commit 60824e77b9
8 changed files with 15 additions and 31 deletions
+1 -1
View File
@@ -643,7 +643,7 @@ void CConsole::LoadHistory()
if (pos != CStrW::npos)
{
if (pos > 0)
m_BufHistory.push_front(str.Left(str[pos-1] == '\r' ? pos - 1 : pos));
m_BufHistory.push_front(str.substr(0, str[pos-1] == '\r' ? pos - 1 : pos));
str.erase(0, pos + 1);
}
else if (str.length() > 0)