Skip to content

Commit

Permalink
Warning Delphi 12
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Nov 30, 2023
1 parent 5b0ede8 commit b888e84
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/RESTRequest4D.Request.Client.pas
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ function TRequestClient.AddBody(const AContent: TJSONObject; const AOwns: Boolea
{$IFDEF MSWINDOWS}
AContent.Free;
{$ELSE}
AContent.DisposeOf;
{$IF COMPILERVERSION <= 35}
AContent.DisposeOf;
{$ELSE}
AContent.Free;
{$ENDIF}
{$ENDIF}
end;
end;
Expand All @@ -133,7 +137,11 @@ function TRequestClient.AddBody(const AContent: TJSONArray; const AOwns: Boolean
{$IFDEF MSWINDOWS}
AContent.Free;
{$ELSE}
AContent.DisposeOf;
{$IF COMPILERVERSION <= 35}
AContent.DisposeOf;
{$ELSE}
AContent.Free;
{$ENDIF}
{$ENDIF}
end;
end;
Expand All @@ -153,7 +161,11 @@ function TRequestClient.AddBody(const AContent: TObject; const AOwns: Boolean):
{$IFDEF MSWINDOWS}
AContent.Free;
{$ELSE}
AContent.DisposeOf;
{$IF COMPILERVERSION <= 35}
AContent.DisposeOf;
{$ELSE}
AContent.Free;
{$ENDIF}
{$ENDIF}
end;
end;
Expand Down Expand Up @@ -637,7 +649,11 @@ function TRequestClient.AddBody(const AContent: TStream; const AOwns: Boolean):
{$IFDEF MSWINDOWS}
AContent.Free;
{$ELSE}
AContent.DisposeOf;
{$IF COMPILERVERSION <= 35}
AContent.DisposeOf;
{$ELSE}
AContent.Free;
{$ENDIF}
{$ENDIF}
end;
end;
Expand Down

0 comments on commit b888e84

Please sign in to comment.