From dddba94c17428a5f93fdff04fcbac328893b466b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 25 May 2019 17:15:00 -0400 Subject: [PATCH] disassembler_arm: Apply const where applicable --- src/frontend/A32/disassembler/disassembler_arm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/A32/disassembler/disassembler_arm.cpp b/src/frontend/A32/disassembler/disassembler_arm.cpp index bbde988f..a3c602a4 100644 --- a/src/frontend/A32/disassembler/disassembler_arm.cpp +++ b/src/frontend/A32/disassembler/disassembler_arm.cpp @@ -466,7 +466,8 @@ public: // Load/Store instructions std::string arm_LDR_lit(Cond cond, bool U, Reg t, Imm<12> imm12) { - bool P = true, W = false; + const bool P = true; + const bool W = false; return arm_LDR_imm(cond, P, U, W, Reg::PC, t, imm12); } std::string arm_LDR_imm(Cond cond, bool P, bool U, bool W, Reg n, Reg t, Imm<12> imm12) {