mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- fixed some warnings
This commit is contained in:
parent
519f9f4298
commit
851a211be2
1 changed files with 2 additions and 6 deletions
|
@ -2347,10 +2347,8 @@ PStruct *NewStruct(FName name, PTypeBase *outer, bool native)
|
|||
PPrototype::PPrototype(const TArray<PType *> &rettypes, const TArray<PType *> &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<PType *> &rettypes, const TArray<PType *> &a
|
|||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < ReturnTypes.Size(); ++i)
|
||||
for (auto& type : ReturnTypes)
|
||||
{
|
||||
auto& type = ReturnTypes[i];
|
||||
|
||||
if (type == TypeFVector2)
|
||||
{
|
||||
type = TypeVector2;
|
||||
|
|
Loading…
Reference in a new issue