mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
Merge branch 'RemovedStrCopy' into 'main'
LCL: Removed unneeded string copy in LCLProc.TextToShortCutGeneric function See merge request freepascal.org/lazarus/lazarus!292
This commit is contained in:
commit
e8ee8c7eb8
@ -716,7 +716,7 @@ var
|
||||
function HasFront(const Front: string): Boolean;
|
||||
begin
|
||||
Result := (Front<>'') and (StartPos+length(Front)-1 <= length(ShortCutText))
|
||||
and (AnsiStrLIComp(@ShortCutText[StartPos],PChar(Front),Length(Front))=0);
|
||||
and (AnsiStrLIComp(@ShortCutText[StartPos],@Front[1],Length(Front))=0);
|
||||
if Result then
|
||||
inc(StartPos,length(Front));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user