summaryrefslogtreecommitdiff
path: root/src/common/Configuration/Config.cpp
diff options
context:
space:
mode:
authorFrancesco Borzì <borzifrancesco@gmail.com>2024-07-31 01:06:46 +0200
committerGitHub <noreply@github.com>2024-07-30 20:06:46 -0300
commit02a05fbd4c640b33b1e03075681f169db2fb6ab2 (patch)
treecfe8879750af8cd87d3ebbea244dd88c52e47275 /src/common/Configuration/Config.cpp
parent06a608d244cf24d5077cbcdf547993d2a0e30659 (diff)
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports * fix: build * chore: fix build * chore: size_t -> std::size_t * chore: fix fuckup from previous commit * chore: fix build * chore: fix build * chore: fix build * chore: fix build with std::size_t * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build
Diffstat (limited to 'src/common/Configuration/Config.cpp')
-rw-r--r--src/common/Configuration/Config.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/Configuration/Config.cpp b/src/common/Configuration/Config.cpp
index 0cd69584d3..2261c14b10 100644
--- a/src/common/Configuration/Config.cpp
+++ b/src/common/Configuration/Config.cpp
@@ -46,9 +46,9 @@ namespace
// Check system configs like *server.conf*
bool IsAppConfig(std::string_view fileName)
{
- size_t foundAuth = fileName.find("authserver.conf");
- size_t foundWorld = fileName.find("worldserver.conf");
- size_t foundImport = fileName.find("dbimport.conf");
+ std::size_t foundAuth = fileName.find("authserver.conf");
+ std::size_t foundWorld = fileName.find("worldserver.conf");
+ std::size_t foundImport = fileName.find("dbimport.conf");
return foundAuth != std::string_view::npos || foundWorld != std::string_view::npos || foundImport != std::string_view::npos;
}
@@ -56,8 +56,8 @@ namespace
// Check logging system configs like Appender.* and Logger.*
bool IsLoggingSystemOptions(std::string_view optionName)
{
- size_t foundAppender = optionName.find("Appender.");
- size_t foundLogger = optionName.find("Logger.");
+ std::size_t foundAppender = optionName.find("Appender.");
+ std::size_t foundLogger = optionName.find("Logger.");
return foundAppender != std::string_view::npos || foundLogger != std::string_view::npos;
}
@@ -223,7 +223,7 @@ namespace
std::string result;
const char* str = key.c_str();
- size_t n = key.length();
+ std::size_t n = key.length();
char curr;
bool isEnd;
@@ -231,7 +231,7 @@ namespace
bool currIsNumeric;
bool nextIsNumeric;
- for (size_t i = 0; i < n; ++i)
+ for (std::size_t i = 0; i < n; ++i)
{
curr = str[i];
if (curr == ' ' || curr == '.' || curr == '-')