Explorar o código

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

git-svn-id: trunk@37422 -
svenbarth %!s(int64=8) %!d(string=hai) anos
pai
achega
da30391a6a
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  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);