From f63167dd0f7edb4495c563f291f9982dc7f5aee3 Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Thu, 16 Jan 2025 23:45:43 -0500 Subject: [PATCH] Use `const` reference --- src/asm/output.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asm/output.cpp b/src/asm/output.cpp index 0a6d783a..e2a86adc 100644 --- a/src/asm/output.cpp +++ b/src/asm/output.cpp @@ -282,7 +282,7 @@ void out_CreateAssert( assertion.message = message; } -static void writeAssert(Assertion &assert, FILE *file) { +static void writeAssert(Assertion const &assert, FILE *file) { writePatch(assert.patch, file); putString(assert.message, file); } @@ -352,7 +352,7 @@ void out_WriteObject() { putLong(assertions.size(), file); - for (Assertion &assert : assertions) + for (Assertion const &assert : assertions) writeAssert(assert, file); }