1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 09:56:38 +02:00

Fix unnecessary uses of std::string.

This commit is contained in:
Sadie Powell
2024-03-18 12:42:41 +00:00
parent 60083834f8
commit 413fed474e
5 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -106,7 +106,7 @@ bool sepstream::GetToken(Anope::string &token)
if (!this->allow_empty)
{
this->pos = this->tokens.find_first_not_of(this->sep, this->pos);
if (this->pos == std::string::npos)
if (this->pos == Anope::string::npos)
{
this->pos = this->tokens.length() + 1;
token.clear();
@@ -115,7 +115,7 @@ bool sepstream::GetToken(Anope::string &token)
}
size_t p = this->tokens.find(this->sep, this->pos);
if (p == std::string::npos)
if (p == Anope::string::npos)
p = this->tokens.length();
token = this->tokens.substr(this->pos, p - this->pos);