Skip to content

Commit 9c43531

Browse files
committed
fix: Change loop to a for loop, and remaining index loops to use the size_t type.
1 parent 6c943c1 commit 9c43531

File tree

1 file changed

+3
-5
lines changed
  • lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender

1 file changed

+3
-5
lines changed

lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender/dllmain.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ void eos_set_loglevel(const LogLevelConfig& log_config)
436436
{
437437
if (EOS_Logging_SetLogLevel_ptr != nullptr)
438438
{
439-
for (unsigned i = 0; i < log_config.category.size() - 1; i++)
439+
for (size_t i = 0; i < log_config.category.size() - 1; i++)
440440
{
441441
EOS_Logging_SetLogLevel_ptr((EOS_ELogCategory)i, eos_loglevel_str_to_enum(log_config.level[i]));
442442
}
@@ -1361,11 +1361,9 @@ void eos_create(EOSConfig& eosConfig)
13611361
// then add one more null terminator at the end of the array
13621362
std::vector<char> steamApiInterfaceVersionsAsCharArray;
13631363

1364-
for (unsigned apiInterfaceVersionIndex = 0; apiInterfaceVersionIndex < eos_steam_config.steamApiInterfaceVersionsArray.size(); apiInterfaceVersionIndex++)
1364+
for (const auto& currentFullValue : eos_steam_config.steamApiInterfaceVersionsArray)
13651365
{
1366-
const std::string& currentFullValue = eos_steam_config.steamApiInterfaceVersionsArray[apiInterfaceVersionIndex];
1367-
1368-
for (unsigned characterIndex = 0; characterIndex < currentFullValue.length(); characterIndex++)
1366+
for (size_t characterIndex = 0; characterIndex < currentFullValue.length(); characterIndex++)
13691367
{
13701368
char currentCharacter = currentFullValue[characterIndex];
13711369
steamApiInterfaceVersionsAsCharArray.push_back(currentCharacter);

0 commit comments

Comments
 (0)