summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/audit.cpp
diff options
context:
space:
mode:
author Miodrag Milanović <mmicko@gmail.com>2016-01-11 09:18:43 +0100
committer Miodrag Milanović <mmicko@gmail.com>2016-01-11 09:18:43 +0100
commit36195292e370de0fb6b32085c105a236995ce36e (patch)
tree1fb147c3e21824272b60e4989f606bc9c206030c /src/emu/audit.cpp
parent7c944fa3b02cd26dec3c27f1e6a4c0d33f462c4e (diff)
parent115db95642ad6d861aad63775b92350e0491f2dd (diff)
Merge pull request #561 from ajrhacker/strings
Return std::string objects by value rather than pass by reference [ajrhacker]
Diffstat (limited to 'src/emu/audit.cpp')
-rw-r--r--src/emu/audit.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/emu/audit.cpp b/src/emu/audit.cpp
index 714fadcc32e..b1016967931 100644
--- a/src/emu/audit.cpp
+++ b/src/emu/audit.cpp
@@ -369,10 +369,9 @@ media_auditor::summary media_auditor::summarize(const char *name, std::string *o
case audit_record::SUBSTATUS_FOUND_BAD_CHECKSUM:
if (output != nullptr)
{
- std::string tempstr;
strcatprintf(*output,"INCORRECT CHECKSUM:\n");
- strcatprintf(*output,"EXPECTED: %s\n", record->expected_hashes().macro_string(tempstr));
- strcatprintf(*output," FOUND: %s\n", record->actual_hashes().macro_string(tempstr));
+ strcatprintf(*output,"EXPECTED: %s\n", record->expected_hashes().macro_string().c_str());
+ strcatprintf(*output," FOUND: %s\n", record->actual_hashes().macro_string().c_str());
}
break;