Skip to content

Commit

Permalink
const size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Oct 16, 2024
1 parent 1d3eba2 commit ad0c852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server/mods/deathmatch/logic/CMainConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ bool CMainConfig::Load()
}

// Strip spaces from beginning and end of server name
size_t snameStart = m_strServerName.find_first_not_of(" ");
const size_t snameStart = m_strServerName.find_first_not_of(" ");
if (snameStart != std::string::npos)
{
size_t snameEnd = m_strServerName.find_last_not_of(" ");
const size_t snameEnd = m_strServerName.find_last_not_of(" ");
m_strServerName = m_strServerName.substr(snameStart, snameEnd - snameStart + 1);
}
else
Expand Down

0 comments on commit ad0c852

Please sign in to comment.