mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 07:28:26 +02:00
* SMall optimization in TRttiInstanceMethod.GetParameters
This commit is contained in:
parent
b447ab211f
commit
4afc656ac5
@ -2232,10 +2232,10 @@ end;
|
||||
|
||||
function TRttiInstanceMethod.GetParameters(aWithHidden: Boolean): TRttiParameterArray;
|
||||
begin
|
||||
if (Length(FParams[aWithHidden]) > 0) then
|
||||
Exit(FParams[aWithHidden]);
|
||||
if FHandle^.ParamCount = 0 then
|
||||
Exit(Nil);
|
||||
if (Length(FParams[aWithHidden]) > 0) then
|
||||
Exit(FParams[aWithHidden]);
|
||||
ResolveParams;
|
||||
Result := FParams[aWithHidden];
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user