* 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
begin
Dec(PropCount);
SetLength(FDeclaredProperties, PropCount);
continue;
end;
Prop := TRttiProperty(GRttiPool[FUsePublishedOnly].GetByHandle(TP));
@ -6564,6 +6563,7 @@ begin
Inc(J);
end;
finally
SetLength(FDeclaredProperties, PropCount);
end;
end;