diff options
Diffstat (limited to 'src/lib/formats')
-rw-r--r-- | src/lib/formats/cbm_crt.cpp | 7 | ||||
-rw-r--r-- | src/lib/formats/cbm_crt.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/formats/cbm_crt.cpp b/src/lib/formats/cbm_crt.cpp index d169d0c2fd7..6484dbf108c 100644 --- a/src/lib/formats/cbm_crt.cpp +++ b/src/lib/formats/cbm_crt.cpp @@ -122,7 +122,7 @@ static const char * CRT_C64_SLOT_NAMES[_CRT_C64_COUNT] = // cbm_crt_get_card - get slot interface card //------------------------------------------------- -void cbm_crt_get_card(std::string &result, core_file *file) +std::string cbm_crt_get_card(core_file *file) { // read the header cbm_crt_header header; @@ -132,11 +132,10 @@ void cbm_crt_get_card(std::string &result, core_file *file) { UINT16 hardware = pick_integer_be(header.hardware, 0, 2); - result.assign(CRT_C64_SLOT_NAMES[hardware]); - return; + return std::string(CRT_C64_SLOT_NAMES[hardware]); } - result.clear(); + return std::string(); } diff --git a/src/lib/formats/cbm_crt.h b/src/lib/formats/cbm_crt.h index 9be37bc0740..f3cfb6bb164 100644 --- a/src/lib/formats/cbm_crt.h +++ b/src/lib/formats/cbm_crt.h @@ -135,7 +135,7 @@ struct cbm_crt_chip // FUNCTION PROTOTYPES //************************************************************************** -void cbm_crt_get_card(std::string &result, core_file *file); +std::string cbm_crt_get_card(core_file *file); bool cbm_crt_read_header(core_file* file, size_t *roml_size, size_t *romh_size, int *exrom, int *game); bool cbm_crt_read_data(core_file* file, UINT8 *roml, UINT8 *romh); |