* optimization of TRttiInstanceType.ResolveExtendedDeclaredProperties

This commit is contained in:
Michaël Van Canneyt 2024-12-23 18:02:25 +01:00
parent e552165b7a
commit 1f19edef00

View File

@ -6549,7 +6549,6 @@ begin
if TP^.PropParams <> nil then if TP^.PropParams <> nil then
begin begin
Dec(PropCount); Dec(PropCount);
SetLength(FDeclaredProperties, PropCount);
continue; continue;
end; end;
Prop := TRttiProperty(GRttiPool[FUsePublishedOnly].GetByHandle(TP)); Prop := TRttiProperty(GRttiPool[FUsePublishedOnly].GetByHandle(TP));
@ -6564,6 +6563,7 @@ begin
Inc(J); Inc(J);
end; end;
finally finally
SetLength(FDeclaredProperties, PropCount);
end; end;
end; end;