Skip to content

Commit

Permalink
RTTI: fixed compatibility with Delphi XE2 and older
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdp committed Jul 24, 2022
1 parent dfff683 commit 0ea0751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Base/JPL.RTTI.pas
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function GetPropertyText(Obj: TObject; const PropertyName, Default: string): str
function SetPropertyIntValue(Obj: TObject; PropertyName: string; Value: integer): Boolean;
function GetPropertyIntValue(Obj: TObject; const PropertyName: string; const Default: integer): integer;

{$IFDEF DCC}
{$IFDEF DELPHIXE3_OR_ABOVE}
function SetPropertyStyleElementsValue(Obj: TObject; const AValue: TStyleElements): Boolean;
{$ENDIF}

Expand Down Expand Up @@ -282,7 +282,7 @@ function TryGetPropertyAsClass(const Obj: TObject; const PropertyName: string; o
Result := OutClass <> nil;
end;

{$IFDEF DCC}
{$IFDEF DELPHIXE3_OR_ABOVE}
function SetPropertyStyleElementsValue(Obj: TObject; const AValue: TStyleElements): Boolean;
var
RContext: TRttiContext;
Expand Down

0 comments on commit 0ea0751

Please sign in to comment.