mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Turn loops into range-based form
and some things suggested by cppcheck and compiler warnings.
This commit is contained in:
@ -192,7 +192,7 @@ std::vector<std::string> cdio_get_devices ()
|
||||
for (unsigned int j = checklist[i].num_min; j <= checklist[i].num_max; ++j)
|
||||
{
|
||||
std::string drive = StringFromFormat(checklist[i].format, j);
|
||||
if ( (is_cdrom(drive.c_str(), NULL)) > 0 )
|
||||
if ( (is_cdrom(drive, NULL)) > 0 )
|
||||
{
|
||||
drives.push_back(std::move(drive));
|
||||
}
|
||||
|
Reference in New Issue
Block a user