diff options
author | 2016-07-05 11:16:05 +1000 | |
---|---|---|
committer | 2016-07-05 11:16:05 +1000 | |
commit | 2c9dfd77ba8de267a204849fc258356c9172cdbc (patch) | |
tree | cb45bc747ec5c1bbb0db927a3113d336623926ed /src/frontend/mame/ui/auditmenu.cpp | |
parent | 09b6b311ff10e0c463420340da82172662c3e988 (diff) |
Revert "C++ comments for some parts."
This reverts commit 19c4764090d1c5131945d11737de8a3bb421b9aa.
Diffstat (limited to 'src/frontend/mame/ui/auditmenu.cpp')
-rw-r--r-- | src/frontend/mame/ui/auditmenu.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/frontend/mame/ui/auditmenu.cpp b/src/frontend/mame/ui/auditmenu.cpp index e40c32e5f29..26c667401c0 100644 --- a/src/frontend/mame/ui/auditmenu.cpp +++ b/src/frontend/mame/ui/auditmenu.cpp @@ -26,8 +26,8 @@ inline int cs_stricmp(const char *s1, const char *s2) { for (;;) { - auto c1 = tolower(*s1++); - auto c2 = tolower(*s2++); + int c1 = tolower(*s1++); + int c2 = tolower(*s2++); if (c1 == 0 || c1 != c2) return c1 - c2; } @@ -35,8 +35,8 @@ inline int cs_stricmp(const char *s1, const char *s2) bool sorted_game_list(const game_driver *x, const game_driver *y) { - auto clonex = (x->parent[0] != '0'); - auto cloney = (y->parent[0] != '0'); + bool clonex = (x->parent[0] != '0'); + bool cloney = (y->parent[0] != '0'); if (!clonex && !cloney) return (cs_stricmp(x->description, y->description) < 0); @@ -120,13 +120,13 @@ void menu_audit::handle() if (m_audit_mode == 1) { - auto iter = m_unavailablesorted.begin(); + vptr_game::iterator iter = m_unavailablesorted.begin(); while (iter != m_unavailablesorted.end()) { driver_enumerator enumerator(machine().options(), (*iter)->name); enumerator.next(); media_auditor auditor(enumerator); - auto summary = auditor.audit_media(AUDIT_VALIDATE_FAST); + media_auditor::summary summary = auditor.audit_media(AUDIT_VALIDATE_FAST); // if everything looks good, include the driver if (summary == media_auditor::CORRECT || summary == media_auditor::BEST_AVAILABLE || summary == media_auditor::NONE_NEEDED) @@ -144,7 +144,7 @@ void menu_audit::handle() media_auditor auditor(enumerator); while (enumerator.next()) { - auto summary = auditor.audit_media(AUDIT_VALIDATE_FAST); + media_auditor::summary summary = auditor.audit_media(AUDIT_VALIDATE_FAST); // if everything looks good, include the driver if (summary == media_auditor::CORRECT || summary == media_auditor::BEST_AVAILABLE || summary == media_auditor::NONE_NEEDED) @@ -188,16 +188,16 @@ void menu_audit::save_available_machines() util::stream_format(buffer, "%d\n", m_unavailablesorted.size()); // generate available list - for (auto & e : m_availablesorted) + for (size_t x = 0; x < m_availablesorted.size(); ++x) { - auto find = driver_list::find(e->name); + int find = driver_list::find(m_availablesorted[x]->name); util::stream_format(buffer, "%d\n", find); } // generate unavailable list - for (auto & e : m_unavailablesorted) + for (size_t x = 0; x < m_unavailablesorted.size(); ++x) { - auto find = driver_list::find(e->name); + int find = driver_list::find(m_unavailablesorted[x]->name); util::stream_format(buffer, "%d\n", find); } file.puts(buffer.str().c_str()); |