Skip to content

Commit

Permalink
std::size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Oct 18, 2024
1 parent 2676b9a commit 4a0bc7e
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,15 +134,15 @@ bool CMainConfig::Load()
}

// Cancel if the server name only contains spaces
const size_t snameStart = m_strServerName.find_first_not_of(" ");
const std::size_t snameStart = m_strServerName.find_first_not_of(" ");
if (snameStart == std::string::npos)
{
CLogger::ErrorPrintf("Server name must contain at least one character other than a space\n");
return false;
}

// Strip spaces from beginning and end of server name
const size_t snameEnd = m_strServerName.find_last_not_of(" ");
const std::size_t snameEnd = m_strServerName.find_last_not_of(" ");
m_strServerName = m_strServerName.substr(snameStart, snameEnd - snameStart + 1);

// Grab the forced server ip(s)
Expand Down

0 comments on commit 4a0bc7e

Please sign in to comment.