diff options
author | 2016-11-19 08:38:48 -0500 | |
---|---|---|
committer | 2016-11-19 08:38:48 -0500 | |
commit | e29d0eefbc28f2e97f4c68ccdcb7da465ed292ad (patch) | |
tree | 12a9b2e9aa01e619ab11b1e4639da6778b338d3e | |
parent | d8776dca8afed496a558c5bca33e7cdb6f2d37bf (diff) |
Converted another declaration to const and constructor syntax
-rw-r--r-- | src/devices/cpu/sparc/sparcdasm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/sparc/sparcdasm.cpp b/src/devices/cpu/sparc/sparcdasm.cpp index a6af1a71d03..2c9b3f11cc1 100644 --- a/src/devices/cpu/sparc/sparcdasm.cpp +++ b/src/devices/cpu/sparc/sparcdasm.cpp @@ -1054,7 +1054,7 @@ offs_t sparc_disassembler::dasm(char *buf, offs_t pc, uint32_t op) const { std::ostringstream stream; const offs_t result(dasm(stream, pc, op)); - std::string stream_str = stream.str(); + const std::string stream_str(stream.str()); strcpy(buf, stream_str.c_str()); return result; } |