mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-14 08:46:08 +02:00
* Patch from Luiz Americo (bug ID 017238) Small speed improvement, corrected order of arguments
git-svn-id: trunk@15879 -
This commit is contained in:
parent
4144176f2f
commit
7a55db3397
@ -1300,7 +1300,7 @@ begin
|
||||
Flist:=TFPObjectList.Create(True);
|
||||
end;
|
||||
|
||||
Function VarRecToJSON(Const Element : TVarRec; SourceType : String) : TJSONData;
|
||||
Function VarRecToJSON(Const Element : TVarRec; const SourceType : String) : TJSONData;
|
||||
|
||||
begin
|
||||
Result:=Nil;
|
||||
@ -1322,7 +1322,7 @@ begin
|
||||
vtObject : if (VObject is TJSONData) then
|
||||
Result:=TJSONData(VObject)
|
||||
else
|
||||
Raise EJSON.CreateFmt(SErrNotJSONData,[SourceType,VObject.ClassName]);
|
||||
Raise EJSON.CreateFmt(SErrNotJSONData,[VObject.ClassName,SourceType]);
|
||||
//vtVariant :
|
||||
else
|
||||
Raise EJSON.CreateFmt(SErrUnknownTypeInConstructor,[SourceType,VType])
|
||||
|
Loading…
Reference in New Issue
Block a user