mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 20:29:23 +02:00
fcl-json: clean up
This commit is contained in:
parent
3b9035c946
commit
b2251e3469
@ -116,7 +116,7 @@ Type
|
|||||||
class procedure SetCompressedJSON(AValue: Boolean); {$IFNDEF PAS2JS}static;{$ENDIF}
|
class procedure SetCompressedJSON(AValue: Boolean); {$IFNDEF PAS2JS}static;{$ENDIF}
|
||||||
protected
|
protected
|
||||||
Class Procedure DoError(Const Msg : String);
|
Class Procedure DoError(Const Msg : String);
|
||||||
Class Procedure DoError(Const Fmt : String; const Args : Array of {$IFDEF PAS2JS}jsvalue{$else}Const{$ENDIF});
|
Class Procedure DoError(Const Fmt : String; const Args : Array of Const);
|
||||||
Function DoFindPath(Const APath : TJSONStringType; Out NotFound : TJSONStringType) : TJSONdata; virtual;
|
Function DoFindPath(Const APath : TJSONStringType; Out NotFound : TJSONStringType) : TJSONdata; virtual;
|
||||||
function GetAsBoolean: Boolean; virtual; abstract;
|
function GetAsBoolean: Boolean; virtual; abstract;
|
||||||
function GetAsFloat: TJSONFloat; virtual; abstract;
|
function GetAsFloat: TJSONFloat; virtual; abstract;
|
||||||
@ -1492,7 +1492,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TJSONData.DoError(const Fmt: String;
|
class procedure TJSONData.DoError(const Fmt: String;
|
||||||
const Args: array of {$IFDEF PAS2JS}jsvalue{$else}Const{$ENDIF});
|
const Args: array of Const);
|
||||||
begin
|
begin
|
||||||
Raise EJSON.CreateFmt(Fmt,Args);
|
Raise EJSON.CreateFmt(Fmt,Args);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user