From 70ba750a5e32ee3d2f11ee97d79a95185c4eb529 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 22 Sep 2025 22:31:23 +0200 Subject: [PATCH] Fix code #3511 --- Source/Engine/Debug/DebugCommands.cpp | 5 +---- Source/Engine/Debug/DebugCommands.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Engine/Debug/DebugCommands.cpp b/Source/Engine/Debug/DebugCommands.cpp index 9c66341ab..fc568a181 100644 --- a/Source/Engine/Debug/DebugCommands.cpp +++ b/Source/Engine/Debug/DebugCommands.cpp @@ -439,11 +439,8 @@ void DebugCommands::GetAllCommands(Array& commands) { EnsureInited(); ScopeLock lock(Locker); - - for (auto& command : Commands) - { + for (const auto& command : Commands) commands.Add(command.Name); - } } DebugCommands::CommandFlags DebugCommands::GetCommandFlags(StringView command) diff --git a/Source/Engine/Debug/DebugCommands.h b/Source/Engine/Debug/DebugCommands.h index cfe70db73..f25fe0581 100644 --- a/Source/Engine/Debug/DebugCommands.h +++ b/Source/Engine/Debug/DebugCommands.h @@ -49,7 +49,7 @@ public: /// /// Gets all available commands. /// - /// The output list of all commands (unsorted). + /// The output list of all commands (unsorted). API_FUNCTION() static void GetAllCommands(API_PARAM(Out) Array& commands); ///