Skip to content

Commit 8c3337b

Browse files
committed
fix: Switch to for-each loop instead of for loop - obviating the need for selecting the correct type for the loop index.
1 parent 9c43531 commit 8c3337b

File tree

1 file changed

+1
-2
lines changed
  • lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender

1 file changed

+1
-2
lines changed

lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender/dllmain.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,9 +1363,8 @@ void eos_create(EOSConfig& eosConfig)
13631363

13641364
for (const auto& currentFullValue : eos_steam_config.steamApiInterfaceVersionsArray)
13651365
{
1366-
for (size_t characterIndex = 0; characterIndex < currentFullValue.length(); characterIndex++)
1366+
for (char currentCharacter : currentFullValue)
13671367
{
1368-
char currentCharacter = currentFullValue[characterIndex];
13691368
steamApiInterfaceVersionsAsCharArray.push_back(currentCharacter);
13701369
}
13711370

0 commit comments

Comments
 (0)