Removed the GetName implementation because the new RTTI information show the constructor methods with the names correctly.

This commit is contained in:
Henrique Gottardi Werlang 2025-04-14 11:11:02 -03:00
parent 6909bd9f3e
commit ca98c509f8

View File

@ -273,8 +273,6 @@ type
function GetProcedureSignature: TRttiProcedureSignature;
function GetReturnType: TRttiType;
protected
function GetName: String; override;
property ProcedureSignature: TRttiProcedureSignature read GetProcedureSignature;
public
function GetParameters: TRttiParameterArray;
@ -2216,14 +2214,6 @@ begin
Result := ProcedureSignature.ReturnType;
end;
function TRttiMethod.GetName: String;
begin
Result := inherited;
if IsConstructor then
Result := Result.SubString(0, Result.IndexOf('$'));
end;
function TRttiMethod.GetProcedureSignature: TRttiProcedureSignature;
begin
if not Assigned(FProcedureSignature) then