Browse Source

fcl-web: fixed compile

mattias 3 years ago
parent
commit
97f4399936

+ 6 - 0
packages/fcl-base/src/pascodegen.pp

@@ -77,6 +77,7 @@ Type
     Procedure Comment(Const AComment : Array of String);
     Procedure Comment(Const AComment : Array of String);
     Procedure Comment(Const AComment : TStrings);
     Procedure Comment(Const AComment : TStrings);
     Procedure ClassComment(Const AClassName: String); virtual;
     Procedure ClassComment(Const AClassName: String); virtual;
+    Procedure ClassHeader(Const AClassName: String); deprecated 'use ClassComment instead';
     Procedure SimpleMethodBody(Lines: Array of string); virtual;
     Procedure SimpleMethodBody(Lines: Array of string); virtual;
     procedure SaveToStream(const AStream: TStream);
     procedure SaveToStream(const AStream: TStream);
     Procedure SaveToFile(Const AFileName : string);
     Procedure SaveToFile(Const AFileName : string);
@@ -400,6 +401,11 @@ begin
   AddLn('');
   AddLn('');
 end;
 end;
 
 
+procedure TPascalCodeGenerator.ClassHeader(const AClassName: String);
+begin
+  ClassComment(AClassName);
+end;
+
 end.
 end.
 
 
 end.
 end.

+ 2 - 2
packages/fcl-web/src/jsonrpc/fprpccodegen.pp

@@ -627,7 +627,7 @@ Var
   I : integer;
   I : integer;
 
 
 begin
 begin
-  ClassHeader(aService.PasName);
+  ClassComment(aService.PasName);
   AddLn('%s = Class(TRPCCustomService)',[aService.PasName]);
   AddLn('%s = Class(TRPCCustomService)',[aService.PasName]);
   Addln('Protected');
   Addln('Protected');
   Indent;
   Indent;
@@ -661,7 +661,7 @@ Var
   I : integer;
   I : integer;
 
 
 begin
 begin
-  ClassHeader(aService.PasName);
+  ClassComment(aService.PasName);
   Addln('');
   Addln('');
   GenerateRPCClassNameImplementation(aService);
   GenerateRPCClassNameImplementation(aService);
   For I:=0 to aService.Methods.Count-1 do
   For I:=0 to aService.Methods.Count-1 do