diff options
author | 2020-01-23 04:03:35 +0100 | |
---|---|---|
committer | 2020-01-22 22:03:35 -0500 | |
commit | 7c3aea8928f90955b7b67e40c705c16d8543384f (patch) | |
tree | 4818711117f20ef52fbbcec6543aa970c3c4d519 /src/frontend/mame/audit.cpp | |
parent | d4bed5fce44ecf903e5170a8d4624a9edf7c14f3 (diff) |
fixed some clang-tidy warnings (nw) (#6197)
* fixed some bugprone-throw-keyword-missing clang-tidy warnings (nw)
* fixed some modernize-use-nullptr clang-tidy warnings (nw)
* fixed some readability-delete-null-pointer clang-tidy warnings (nw)
* fixed some performance-faster-string-find clang-tidy warnings (nw)
* fixed some performance-for-range-copy clang-tidy warnings (nw)
* fixed some readability-redundant-string-cstr clang-tidy warnings (nw)
Diffstat (limited to 'src/frontend/mame/audit.cpp')
-rw-r--r-- | src/frontend/mame/audit.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/frontend/mame/audit.cpp b/src/frontend/mame/audit.cpp index a33dd4bb52a..dbba78e20ec 100644 --- a/src/frontend/mame/audit.cpp +++ b/src/frontend/mame/audit.cpp @@ -220,14 +220,14 @@ media_auditor::summary media_auditor::audit_samples() // look for the files emu_file file(m_enumerator.options().sample_path(), OPEN_FLAG_READ | OPEN_FLAG_NO_PRELOAD); - path_iterator path(searchpath.c_str()); + path_iterator path(searchpath); std::string curpath; while (path.next(curpath, samplename)) { // attempt to access the file (.flac) or (.wav) - osd_file::error filerr = file.open(curpath.c_str(), ".flac"); + osd_file::error filerr = file.open(curpath, ".flac"); if (filerr != osd_file::error::NONE) - filerr = file.open(curpath.c_str(), ".wav"); + filerr = file.open(curpath, ".wav"); if (filerr == osd_file::error::NONE) { @@ -397,9 +397,9 @@ media_auditor::audit_record &media_auditor::audit_one_rom(const rom_entry *rom) // open the file if we can osd_file::error filerr; if (has_crc) - filerr = file.open(curpath.c_str(), crc); + filerr = file.open(curpath, crc); else - filerr = file.open(curpath.c_str()); + filerr = file.open(curpath); // if it worked, get the actual length and hashes, then stop if (filerr == osd_file::error::NONE) |