From 851a211be27f039871d5540e339b8faf617706e1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 13 Jun 2022 00:08:08 +0200 Subject: [PATCH] - fixed some warnings --- src/common/scripting/core/types.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/common/scripting/core/types.cpp b/src/common/scripting/core/types.cpp index 33380d1e35..01f83ba891 100644 --- a/src/common/scripting/core/types.cpp +++ b/src/common/scripting/core/types.cpp @@ -2347,10 +2347,8 @@ PStruct *NewStruct(FName name, PTypeBase *outer, bool native) PPrototype::PPrototype(const TArray &rettypes, const TArray &argtypes) : ArgumentTypes(argtypes), ReturnTypes(rettypes) { - for (int i = 0; i < ArgumentTypes.Size(); ++i) + for (auto& type: ArgumentTypes) { - auto& type = ArgumentTypes[i]; - if (type == TypeFVector2) { type = TypeVector2; @@ -2361,10 +2359,8 @@ PPrototype::PPrototype(const TArray &rettypes, const TArray &a } } - for (int i = 0; i < ReturnTypes.Size(); ++i) + for (auto& type : ReturnTypes) { - auto& type = ReturnTypes[i]; - if (type == TypeFVector2) { type = TypeVector2;