Browse Source

* Small improvement in setting method prop, by Lipinast Lekrisov

Michaël Van Canneyt 1 năm trước cách đây
mục cha
commit
76e2ee9970

+ 1 - 1
packages/rtl-objpas/src/inc/rtti.pp

@@ -7313,7 +7313,7 @@ begin
     tkClass:
     tkClass:
       SetObjectProp(TObject(Instance), FPropInfo, AValue.AsObject);
       SetObjectProp(TObject(Instance), FPropInfo, AValue.AsObject);
     tkMethod:
     tkMethod:
-      SetMethodProp(TObject(Instance), FPropInfo, TMethod(AValue.GetReferenceToRawData^));
+      SetMethodProp(TObject(Instance), FPropInfo, PMethod(AValue.GetReferenceToRawData)^);
     tkInterface:
     tkInterface:
       SetInterfaceProp(TObject(Instance), FPropInfo, AValue.AsInterface);
       SetInterfaceProp(TObject(Instance), FPropInfo, AValue.AsInterface);
     tkFloat:
     tkFloat: