]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: correct mal-typed CVfrDLGLexer::errstd
authorzenith432 <zenith432@users.sourceforge.net>
Sat, 9 Dec 2017 09:38:51 +0000 (09:38 +0000)
committerLiming Gao <liming.gao@intel.com>
Tue, 2 Jan 2018 12:37:20 +0000 (20:37 +0800)
The member function CVfrDLGLexer::errstd is intended as an override virtual
function of DLGLexerBase::errstd, but due to mismatched prototype, it
didn't override, and never got called.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zenith432 <zenith432@users.sourceforge.net>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/VfrCompile/VfrSyntax.g

index fbd5abfacad9d7667ac522e57d46da19e5e37d78..a434eacff89c4bfd7d679faf576a820994df7422 100644 (file)
@@ -42,7 +42,7 @@ class CVfrDLGLexer : public VfrLexer
 {\r
 public:\r
   CVfrDLGLexer (DLGFileInput *F) : VfrLexer (F) {};\r
-  INT32 errstd (char *Text)\r
+  void errstd (const char *Text)\r
   {\r
     printf ("unrecognized input '%s'\n", Text);\r
   }\r