mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-06 03:19:52 +01: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);
|
procedure TCustomJSONPropStorage.SetFormatted(Value: Boolean);
|
||||||
begin
|
begin
|
||||||
FFormatted := Value;
|
FFormatted := Value;
|
||||||
|
{$IF FPC_FULLVERSION >= 30000}
|
||||||
if (FJSONConf<>nil) then
|
if (FJSONConf<>nil) then
|
||||||
FJSONConf.Formatted := Value;
|
FJSONConf.Formatted := Value;
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCustomJSONPropStorage.FixPath(const APath: String): String;
|
function TCustomJSONPropStorage.FixPath(const APath: String): String;
|
||||||
@ -116,7 +118,9 @@ begin
|
|||||||
if (FJSONConf=nil) and not (csDesigning in ComponentState) then
|
if (FJSONConf=nil) and not (csDesigning in ComponentState) then
|
||||||
begin
|
begin
|
||||||
FJSONConf := TJSONConfig.Create(nil);
|
FJSONConf := TJSONConfig.Create(nil);
|
||||||
|
{$IF FPC_FULLVERSION >= 30000}
|
||||||
FJSONConf.Formatted := FFormatted;
|
FJSONConf.Formatted := FFormatted;
|
||||||
|
{$ENDIF}
|
||||||
FJSONConf.Filename := GetJSONFileName;
|
FJSONConf.Filename := GetJSONFileName;
|
||||||
end;
|
end;
|
||||||
Inc(FCount);
|
Inc(FCount);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user