diff options
author | 2020-01-23 04:03:35 +0100 | |
---|---|---|
committer | 2020-01-22 22:03:35 -0500 | |
commit | 7c3aea8928f90955b7b67e40c705c16d8543384f (patch) | |
tree | 4818711117f20ef52fbbcec6543aa970c3c4d519 /src/emu/softlist_dev.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/emu/softlist_dev.cpp')
-rw-r--r-- | src/emu/softlist_dev.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/softlist_dev.cpp b/src/emu/softlist_dev.cpp index e177954b248..9b749e8a4ec 100644 --- a/src/emu/softlist_dev.cpp +++ b/src/emu/softlist_dev.cpp @@ -282,7 +282,7 @@ void software_list_device::parse() m_errors.clear(); // attempt to open the file - osd_file::error filerr = m_file.open(m_list_name.c_str(), ".xml"); + osd_file::error filerr = m_file.open(m_list_name, ".xml"); if (filerr == osd_file::error::NONE) { // parse if no error @@ -489,7 +489,7 @@ void software_list_device::internal_validity_check(validity_checker &valid) } // make sure the parent exists - const software_info *swinfo2 = find(swinfo.parentname().c_str()); + const software_info *swinfo2 = find(swinfo.parentname()); if (swinfo2 == nullptr) osd_printf_error("%s: parent '%s' software for '%s' not found\n", filename(), swinfo.parentname(), shortname); |