diff options
author | 2016-01-10 16:36:18 -0500 | |
---|---|---|
committer | 2016-01-10 16:36:18 -0500 | |
commit | 115db95642ad6d861aad63775b92350e0491f2dd (patch) | |
tree | 8e7538ca804610335bff1927dc3b4d974b4c06da /src/devices/bus/plus4/exp.cpp | |
parent | 2a2a4a3c6e255c479d5072d02c2a40949f611ea6 (diff) |
Return std::string objects by value rather than pass by reference
- strprintf is unaltered, but strformat now takes one fewer argument
- state_string_export still fills a buffer, but has been made const
- get_default_card_software now takes no arguments but returns a string
Diffstat (limited to 'src/devices/bus/plus4/exp.cpp')
-rw-r--r-- | src/devices/bus/plus4/exp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/plus4/exp.cpp b/src/devices/bus/plus4/exp.cpp index 5ea6289b2cc..efea87851e1 100644 --- a/src/devices/bus/plus4/exp.cpp +++ b/src/devices/bus/plus4/exp.cpp @@ -157,9 +157,9 @@ bool plus4_expansion_slot_device::call_softlist_load(software_list_device &swlis // get_default_card_software - //------------------------------------------------- -void plus4_expansion_slot_device::get_default_card_software(std::string &result) +std::string plus4_expansion_slot_device::get_default_card_software() { - software_get_default_slot(result, "standard"); + return software_get_default_slot("standard"); } |