summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh2/sh2dasm.cpp
diff options
context:
space:
mode:
author Vas Crabb <cuavas@users.noreply.github.com>2016-11-21 11:30:06 +1100
committer GitHub <noreply@github.com>2016-11-21 11:30:06 +1100
commitb8b0774997e7a898c53479b1d7e4860a0d4dc1e8 (patch)
tree07e199d26412bf36d0dc75e0645510c20ac691f2 /src/devices/cpu/sh2/sh2dasm.cpp
parent9b197f3d5556e1e2808fe82fc970a04a4e84a034 (diff)
parent68a115369194cb7b859ce53ed2d9a201278d3430 (diff)
Merge pull request #1317 from npwoods/disasm_stdstring
Refactored device_disasm_interface::disassemble() and dasm_override_delegate to take string buffers as std::string
Diffstat (limited to 'src/devices/cpu/sh2/sh2dasm.cpp')
-rw-r--r--src/devices/cpu/sh2/sh2dasm.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/devices/cpu/sh2/sh2dasm.cpp b/src/devices/cpu/sh2/sh2dasm.cpp
index a484c2a9cb4..ef823ee28a5 100644
--- a/src/devices/cpu/sh2/sh2dasm.cpp
+++ b/src/devices/cpu/sh2/sh2dasm.cpp
@@ -606,9 +606,5 @@ unsigned DasmSH2(std::ostream &stream, unsigned pc, uint16_t opcode)
CPU_DISASSEMBLE(sh2)
{
- std::ostringstream stream;
- offs_t result = DasmSH2(stream, pc, (oprom[0] << 8) | oprom[1]);
- std::string stream_str = stream.str();
- strcpy(buffer, stream_str.c_str());
- return result;
+ return DasmSH2(stream, pc, (oprom[0] << 8) | oprom[1]);
}