Browse Source

* optimization of TRttiInstanceType.ResolveExtendedDeclaredProperties

Michaël Van Canneyt 7 months ago
parent
commit
1f19edef00
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl-objpas/src/inc/rtti.pp

+ 1 - 1
packages/rtl-objpas/src/inc/rtti.pp

@@ -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;