* get rid of calls to aligntoptr by using methods provided by TClassData and TPropInfo

git-svn-id: trunk@37423 -
This commit is contained in:
svenbarth 2017-10-07 22:02:40 +00:00
parent da30391a6a
commit 89645633a9

View File

@ -1692,7 +1692,7 @@ begin
// published properties count for this object
// skip the attribute-info if available
PPD := aligntoptr(PPropData(pointer(@TD^.UnitName)+PByte(@TD^.UnitName)^+1));
PPD := PClassData(TD)^.PropertyTable;
Count:=PPD^.PropCount;
// Now point TP to first propinfo record.
TP:=PPropInfo(@PPD^.PropList);
@ -1711,7 +1711,7 @@ begin
// Point to TP next propinfo record.
// Located at Name[Length(Name)+1] !
TP:=aligntoptr(PPropInfo(pointer(@TP^.Name)+PByte(@TP^.Name)^+1));
TP:=TP^.Next;
Dec(Count);
end;
TypeInfo:=TD^.Parentinfo;