diff --git a/components/codetools/eventcodetool.pas b/components/codetools/eventcodetool.pas index 392dc85f1b..66aba84f09 100644 --- a/components/codetools/eventcodetool.pas +++ b/components/codetools/eventcodetool.pas @@ -252,7 +252,7 @@ begin if phpWithResultType in Attr then begin Len:=ord(TypeData^.ParamList[Offset]); inc(Offset); - SetLength(ResultType,Len); + SetLength(ResultType{%H-},Len); Move(TypeData^.ParamList[Offset],ResultType[1],Len); inc(Offset,Len); if (ResultType<>'') and (IsIdentStartChar[ResultType[1]]) then // e.g. $void @@ -1254,7 +1254,7 @@ begin // skip ParamName Len:=ord(TypeData^.ParamList[Offset]); {$IFDEF VerboseTypeData} - SetLength(CurParamName,Len); + SetLength(CurParamName{%H-},Len); if Len>0 then Move(TypeData^.ParamList[Offset+1],CurParamName[1],Len); {$ENDIF} @@ -1263,7 +1263,7 @@ begin // read ParamType Len:=ord(TypeData^.ParamList[Offset]); inc(Offset); - SetLength(CurTypeIdentifier,Len); + SetLength(CurTypeIdentifier{%H-},Len); if CurTypeIdentifier<>'' then Move(TypeData^.ParamList[Offset],CurTypeIdentifier[1],Len); inc(Offset,Len); diff --git a/components/codetools/unitdictionary.pas b/components/codetools/unitdictionary.pas index 7c76756048..c428df2cf7 100644 --- a/components/codetools/unitdictionary.pas +++ b/components/codetools/unitdictionary.pas @@ -776,7 +776,7 @@ var while (p';') then e('unit id expected, but found "'+dbgstr(p^)+'"'); - SetLength(UnitID,p-StartP); + SetLength(UnitID{%H-},p-StartP); Move(StartP^,UnitID[1],length(UnitID)); inc(p); // skip semicolon @@ -787,7 +787,7 @@ var while (p';') then e('unit use count expected, but found "'+dbgstr(p^)+'"'); - SetLength(s,p-StartP); + SetLength(s{%H-},p-StartP); Move(StartP^,s[1],length(s)); UseCount:=StrToInt64Def(s,0); inc(p); // skip semicolon @@ -798,7 +798,7 @@ var while (p';') then e('unit name expected, but found "'+dbgstr(p^)+'"'); - SetLength(CurUnitName,p-StartP); + SetLength(CurUnitName{%H-},p-StartP); Move(StartP^,CurUnitName[1],length(CurUnitName)); inc(p); // skip semicolon @@ -807,7 +807,7 @@ var while (p';') then e('group name expected, but found "'+dbgstr(p^)+'"'); - SetLength(GroupName,p-StartP); + SetLength(GroupName{%H-},p-StartP); if GroupName<>'' then Move(StartP^,GroupName[1],length(GroupName)); inc(p); // skip semicolon @@ -875,7 +875,7 @@ var while (p';') then e('group use count expected, but found "'+dbgstr(p^)+'"'); - SetLength(s,p-StartP); + SetLength(s{%H-},p-StartP); Move(StartP^,s[1],length(s)); UseCount:=StrToInt64Def(s,0); inc(p); // skip semicolon @@ -886,7 +886,7 @@ var while (p'' then Move(StartP^,GroupFilename[1],length(GroupFilename)); ReadLineEnding; @@ -903,7 +903,7 @@ var if (not (p^ in [#10,#13])) then e('unit identifier expected, but found "'+dbgstr(p^)+'"'); if p=StartP then break; - SetLength(UnitID,p-StartP); + SetLength(UnitID{%H-},p-StartP); Move(StartP^,UnitID[1],length(UnitID)); ReadLineEnding;