Browse Source

* FillChar for the properties is not needed as SetLength already initializes the array elements

git-svn-id: trunk@37422 -
svenbarth 8 năm trước cách đây
mục cha
commit
da30391a6a
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      packages/rtl-objpas/src/inc/rtti.pp

+ 0 - 2
packages/rtl-objpas/src/inc/rtti.pp

@@ -1686,8 +1686,6 @@ begin
 
       // Get the total properties count
       SetLength(FProperties,FTypeData^.PropCount);
-      // Clear list
-      FillChar(FProperties[0],FTypeData^.PropCount*sizeof(TRttiProperty),0);
       TypeRttiType:= self;
       repeat
         TD:=GetTypeData(TypeInfo);