mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 18:22:54 +02:00
codetools: extractproc: do not add const modifier when variable is modified in selection
git-svn-id: trunk@40881 -
This commit is contained in:
parent
e44460c6b1
commit
6183e3ca8e
@ -605,6 +605,9 @@ var
|
||||
DebugLn('TExtractProcTool.CreateProcParamList C ParamName="',ParamName,'" ParamType="',ParamTypeCode,'"');
|
||||
{$ENDIF}
|
||||
// ToDo: ParamSpecifier 'var ' and none
|
||||
if ProcVar.WriteInSelection then
|
||||
ParamSpecifier:=''
|
||||
else
|
||||
ParamSpecifier:='const ';
|
||||
if ProcVar.ReadAfterSelection then
|
||||
ParamSpecifier:='var ';
|
||||
|
Loading…
Reference in New Issue
Block a user