Browse Source

* it's more correct for GetPropAttribute to return a TCustomAttribute instead of a TObject

git-svn-id: trunk@42366 -
svenbarth 6 years ago
parent
commit
5153a288dc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/objpas/typinfo.pp

+ 2 - 2
rtl/objpas/typinfo.pp

@@ -916,7 +916,7 @@ function GetNextTypeInfo(ATypeInfo: PTypeInfo): PTypeInfo;
 
 
 function GetAttributeData(TypeInfo: PTypeInfo): PAttributeData;
 function GetAttributeData(TypeInfo: PTypeInfo): PAttributeData;
 
 
-function GetPropAttribute(PropInfo: PPropInfo; AttributeNr: byte): TObject;
+function GetPropAttribute(PropInfo: PPropInfo; AttributeNr: byte): TCustomAttribute;
 
 
 function GetAttribute(AttributeData: PAttributeData; AttributeNr: byte): TCustomAttribute;
 function GetAttribute(AttributeData: PAttributeData; AttributeNr: byte): TCustomAttribute;
 
 
@@ -1150,7 +1150,7 @@ begin
     result := nil;
     result := nil;
 end;
 end;
 
 
-function GetPropAttribute(PropInfo: PPropInfo; AttributeNr: byte): TObject;
+function GetPropAttribute(PropInfo: PPropInfo; AttributeNr: byte): TCustomAttribute;
 var
 var
   attrtable: PAttributeData;
   attrtable: PAttributeData;
 begin
 begin