LazUtils: Masks: replace some lines of code with a single AddLiteral.

This commit is contained in:
Bart 2021-11-06 13:32:30 +01:00
parent 3b2e56528b
commit 5dff088116

View File

@ -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