From 5bf637a429bbcf09092b8d189010c50d61c3562f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 12 Dec 2017 16:54:46 +0100 Subject: Suppress some warning You can call it a fix but in reality it has same effect but I accept that this is better. --- qtmips_machine/instruction.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qtmips_machine/instruction.cpp') diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp index b6abebc..4137fdd 100644 --- a/qtmips_machine/instruction.cpp +++ b/qtmips_machine/instruction.cpp @@ -67,9 +67,7 @@ Instruction::Instruction(std::uint8_t opcode, std::uint32_t address) { this->dt |= address; } -Instruction::Instruction(const Instruction &i) { - this->dt = i.data(); -} +Instruction::Instruction(const Instruction &i) : Instruction(i.data()) { } QString Instruction::to_str() { if (this->opcode() >= sizeof(instruction_map)) -- cgit v1.2.3