Browse Source

fcl-json: less hints

git-svn-id: trunk@41480 -
Mattias Gaertner 6 years ago
parent
commit
7354b2c2e5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/fcl-json/src/fpjson.pp

+ 3 - 3
packages/fcl-json/src/fpjson.pp

@@ -3171,10 +3171,10 @@ begin
     {$else}
     {$else}
     With Elements[i] do
     With Elements[i] do
       Case VType of
       Case VType of
-        vtChar       : AName:=VChar;
-        vtString     : AName:=vString^;
+        vtChar       : AName:=TJSONUnicodeStringType(VChar);
+        vtString     : AName:=TJSONUnicodeStringType(vString^);
         vtAnsiString : AName:=UTF8Decode(StrPas(VPChar));
         vtAnsiString : AName:=UTF8Decode(StrPas(VPChar));
-        vtPChar      : AName:=StrPas(VPChar);
+        vtPChar      : AName:=TJSONUnicodeStringType(StrPas(VPChar));
       else
       else
         DoError(SErrNameMustBeString,[I+1]);
         DoError(SErrNameMustBeString,[I+1]);
       end;
       end;