mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 14:05:58 +02:00
LCL: Removed unneeded string copy in LCLProc.TextToShortCutGeneric function
This commit is contained in:
parent
fc41ca2ea9
commit
27f3226a53
@ -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