  			}
  			applyMask(i);  // Undoes the mask due to XOR
  		}
  	}
  	if (msk < 0 || msk > 7)
  		throw std::logic_error("Assertion error");
  	this->mask = msk;
  	applyMask(msk);  // Apply the final choice of mask
  	drawFormatBits(msk);  // Overwrite old format bits
  	
 
</s> remove 		result += finderPenaltyTerminateAndCount(runColor, runY, runHistory) * PENALTY_N3;
 </s> add 		result += finderPenaltyTerminateAndCount(runColor, runY, runHistory) * PENALTY_N3;//lgtm [cpp/integer-multiplication-cast-to-long] </s> remove 		result += finderPenaltyTerminateAndCount(runColor, runX, runHistory) * PENALTY_N3;
 </s> add 		result += finderPenaltyTerminateAndCount(runColor, runX, runHistory) * PENALTY_N3;//lgtm [cpp/integer-multiplication-cast-to-long] </s> remove 					result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3;
 </s> add 					result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3;//lgtm [cpp/integer-multiplication-cast-to-long] </s> remove 					result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3;
 </s> add 					result += finderPenaltyCountPatterns(runHistory) * PENALTY_N3;//lgtm [cpp/integer-multiplication-cast-to-long]
	if (msk < 0 || msk > 7)//lgtm [cpp/constant-comparison]
  			}
  			applyMask(i);  // Undoes the mask due to XOR
  		}
  	}
	if (msk < 0 || msk > 7)//lgtm [cpp/constant-comparison]
  		throw std::logic_error("Assertion error");
  	this->mask = msk;
  	applyMask(msk);  // Apply the final choice of mask
  	drawFormatBits(msk);  // Overwrite old format bits
  	
keep keep keep keep replace keep keep keep keep keep
 fix LGTM issues (#19868)

Co-authored-by: Comma Device <device@comma.ai> 
selfdrive/ui/qt/widgets/QrCode.cc