Cleanup warnings of -Wswitch

Add default branch to the switch-case.
This commit is contained in:
Jun Su
2020-03-23 14:35:01 +08:00
committed by Léo Lam
parent 586af0a55e
commit f3d7b82f83
4 changed files with 26 additions and 2 deletions

View File

@ -747,6 +747,7 @@ void GameList::OpenGCSaveFolder()
break;
}
case ExpansionInterface::EXIDEVICE_MEMORYCARD:
{
std::string memcard_path = i == 0 ? Config::Get(Config::MAIN_MEMCARD_A_PATH) :
Config::Get(Config::MAIN_MEMCARD_B_PATH);
@ -756,6 +757,9 @@ void GameList::OpenGCSaveFolder()
url = QUrl::fromLocalFile(QString::fromStdString(memcard_dir));
break;
}
default:
break;
}
found |= !url.isEmpty();