Parcourir la source

* Better uses clause for Delphi, less warnings

git-svn-id: trunk@45252 -
michael il y a 5 ans
Parent
commit
2073e518cc
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      packages/fcl-json/src/fpjsontopas.pp

+ 2 - 1
packages/fcl-json/src/fpjsontopas.pp

@@ -397,7 +397,8 @@ begin
   if (S<>'') and (S[1]<>',') then
     S:=', '+S;
   if jpoDelphiJSON in Options then
-    S:='JSON'+S
+    // Collections to avoid warnings about unexpanded inlines
+    S:='System.Generics.Collections, JSON'+S
   else
     S:='fpJSON'+S;
   S:='SysUtils, Classes, '+S;