Browse Source

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

git-svn-id: trunk@37422 -
svenbarth 7 years ago
parent
commit
da30391a6a
1 changed files with 0 additions and 2 deletions
  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
       // Get the total properties count
       SetLength(FProperties,FTypeData^.PropCount);
       SetLength(FProperties,FTypeData^.PropCount);
-      // Clear list
-      FillChar(FProperties[0],FTypeData^.PropCount*sizeof(TRttiProperty),0);
       TypeRttiType:= self;
       TypeRttiType:= self;
       repeat
       repeat
         TD:=GetTypeData(TypeInfo);
         TD:=GetTypeData(TypeInfo);