aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/instruction.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-12-12 16:54:46 +0100
committerKarel Kočí <cynerd@email.cz>2017-12-12 16:54:46 +0100
commit5bf637a429bbcf09092b8d189010c50d61c3562f (patch)
treee7ffaa3be571eb6ba647eb5db81869dc4eddffa0 /qtmips_machine/instruction.cpp
parent7bca6e89a438f6df52fd022f881ba6af1f1eea54 (diff)
downloadqtmips-5bf637a429bbcf09092b8d189010c50d61c3562f.tar.gz
qtmips-5bf637a429bbcf09092b8d189010c50d61c3562f.tar.bz2
qtmips-5bf637a429bbcf09092b8d189010c50d61c3562f.zip
Suppress some warning
You can call it a fix but in reality it has same effect but I accept that this is better.
Diffstat (limited to 'qtmips_machine/instruction.cpp')
-rw-r--r--qtmips_machine/instruction.cpp4
1 files changed, 1 insertions, 3 deletions
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))