From ad0c852250074fae4674f72c1e6e4e0214dd094a Mon Sep 17 00:00:00 2001 From: Fernando-A-Rocha Date: Wed, 16 Oct 2024 12:16:32 +0100 Subject: [PATCH] const size_t --- Server/mods/deathmatch/logic/CMainConfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/mods/deathmatch/logic/CMainConfig.cpp b/Server/mods/deathmatch/logic/CMainConfig.cpp index 4f47333f03..c96c1b6a87 100644 --- a/Server/mods/deathmatch/logic/CMainConfig.cpp +++ b/Server/mods/deathmatch/logic/CMainConfig.cpp @@ -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