mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 00:11:51 +02:00
Fixes compilation with FPC 2.6
git-svn-id: trunk@54207 -
This commit is contained in:
parent
d177b138b7
commit
970dc3e689
@ -102,8 +102,10 @@ end;
|
||||
procedure TCustomJSONPropStorage.SetFormatted(Value: Boolean);
|
||||
begin
|
||||
FFormatted := Value;
|
||||
{$IF FPC_FULLVERSION >= 30000}
|
||||
if (FJSONConf<>nil) then
|
||||
FJSONConf.Formatted := Value;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
function TCustomJSONPropStorage.FixPath(const APath: String): String;
|
||||
@ -116,7 +118,9 @@ begin
|
||||
if (FJSONConf=nil) and not (csDesigning in ComponentState) then
|
||||
begin
|
||||
FJSONConf := TJSONConfig.Create(nil);
|
||||
{$IF FPC_FULLVERSION >= 30000}
|
||||
FJSONConf.Formatted := FFormatted;
|
||||
{$ENDIF}
|
||||
FJSONConf.Filename := GetJSONFileName;
|
||||
end;
|
||||
Inc(FCount);
|
||||
|
Loading…
Reference in New Issue
Block a user