浏览代码

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

git-svn-id: trunk@37422 -
svenbarth 8 年之前
父节点
当前提交
da30391a6a
共有 1 个文件被更改,包括 0 次插入2 次删除
  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);