IRParser: Mark parameter of CheckPrintError as a const reference

Def is only ever accessed to read members, so we can signify to the
reader to not expect it to be modified.
This commit is contained in:
Lioncash committed 2021-06-05 06:43:16 -04:00
1 parent 676d9cb665
commit d73b79470e
1 file changed
+1 -1
+1 -1
View File
@@ -327,7 +327,7 @@ class IRParser: public FEXCore::IR::IREmitter {
bool Parse() {
auto CheckPrintError = [&](LineDefinition &Def, DecodeFailure Failure) -> bool {
const auto CheckPrintError = [&](const LineDefinition &Def, DecodeFailure Failure) -> bool {
if (Failure != DecodeFailure::DECODE_OKAY) {
LogMan::Msg::E("Error on Line: %d", Def.LineNumber);
LogMan::Msg::E("%s", Lines[Def.LineNumber].c_str());