From d0c036aa818f3543b8beab341400efb904d2e291 Mon Sep 17 00:00:00 2001 From: Juha Date: Wed, 6 Mar 2024 10:09:34 +0200 Subject: [PATCH] =?UTF-8?q?Codetools:=20Complete=20also=20a=20virtual/over?= =?UTF-8?q?ridden=20method=20body=20with=20empty=20brackets.=20Issue=20#40?= =?UTF-8?q?799,=20patch=20by=20Domingo=20Galm=C3=A9s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/codetools/codecompletiontool.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/codetools/codecompletiontool.pas b/components/codetools/codecompletiontool.pas index 6bc9d1bf69..996dbed9b8 100644 --- a/components/codetools/codecompletiontool.pas +++ b/components/codetools/codecompletiontool.pas @@ -8464,9 +8464,9 @@ begin if InclProcCall then begin ProcCode:=ExtractProcHead(ProcNode,[phpWithStart,phpAddClassname, phpWithVarModifiers,phpWithParameterNames, - phpWithResultType,phpWithCallingSpecs]); + phpWithResultType,phpWithCallingSpecs,phpWithEmptyParamList]); ProcCall:='inherited '+ExtractProcHead(ProcNode,[phpWithoutClassName, - phpWithParameterNames,phpWithoutParamTypes]); + phpWithParameterNames,phpWithoutParamTypes,phpWithEmptyParamList]); for i:=1 to length(ProcCall)-1 do if ProcCall[i]=';' then ProcCall[i]:=',';