mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-25 18:09:20 +02:00
LazUtils: Masks: replace some lines of code with a single AddLiteral.
This commit is contained in:
parent
3b2e56528b
commit
5dff088116
@ -916,12 +916,7 @@ begin
|
||||
inc(fMaskInd,fCPLength);
|
||||
if fMaskInd<=fMaskLimit then begin
|
||||
fCPLength:=UTF8CodepointSizeFast(@fMask[fMaskInd]);
|
||||
Add(TMaskParsedCode.Literal);
|
||||
Add(fCPLength,@fMask[fMaskInd]);
|
||||
inc(fMatchMinimumLiteralBytes,fCPLength);
|
||||
if fMatchMaximumLiteralBytes<High(fMatchMaximumLiteralBytes) then
|
||||
inc(fMatchMaximumLiteralBytes,fCPLength);
|
||||
fLastOC:=TMaskParsedCode.Literal;
|
||||
AddLiteral;
|
||||
inc(fMaskInd,fCPLength);
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user