Skip to content

Commit

Permalink
Removed unused views::enumerate.
Browse files Browse the repository at this point in the history
  • Loading branch information
UE4SS committed Sep 16, 2023
1 parent 1f7da86 commit ee8c48f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/GUI/LiveView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <Helpers/String.hpp>
#include <JSON/JSON.hpp>
#include <JSON/Parser/Parser.hpp>
#include <Constructs/Views/EnumerateView.hpp>
#include <UE4SSProgram.hpp>
#include <Unreal/UnrealInitializer.hpp>
#include <Unreal/UPackage.hpp>
Expand Down Expand Up @@ -1916,7 +1915,7 @@ namespace RC::GUI
StringType buffer{STR("Received call.\n Locals:\n")};

bool has_local_params{};
for (const auto& [param, count] : function->ForEachProperty() | views::enumerate)
for (const auto& param : function->ForEachProperty())
{
if (param->HasAnyPropertyFlags(CPF_OutParm | CPF_ReturnParm)) { continue; }
has_local_params = true;
Expand All @@ -1929,7 +1928,7 @@ namespace RC::GUI

bool has_out_params{};
buffer.append(STR(" Out:\n"));
for (const auto& [param, count] : function->ForEachProperty() | views::enumerate)
for (const auto& param : function->ForEachProperty())
{
if (param->HasAnyPropertyFlags(CPF_ReturnParm)) { continue; }
if (!param->HasAnyPropertyFlags(CPF_OutParm)) { continue; }
Expand Down

0 comments on commit ee8c48f

Please sign in to comment.