Remove default cases from switches using enum class

This commit is contained in:
Luis Ángel San Martín 2025-05-04 17:33:39 +02:00
parent 9d7a554ab3
commit 1b4116db1a

View File

@ -198,7 +198,11 @@ void ComicVineDialog::goBack()
else else
showSearchSingleComic(); showSearchSingleComic();
break; break;
default:
case ScraperStatus::AskingForInfo:
case ScraperStatus::SearchingSingleComic:
case ScraperStatus::SearchingVolume:
case ScraperStatus::GettingVolumeComics:
if (mode == ScraperMode::Volume) if (mode == ScraperMode::Volume)
showSearchVolume(); showSearchVolume();
else else
@ -441,7 +445,11 @@ void ComicVineDialog::queryTimeOut()
case ScraperStatus::GettingVolumeComics: case ScraperStatus::GettingVolumeComics:
showSelectVolume(); showSelectVolume();
break; break;
default:
case ScraperStatus::AskingForInfo:
case ScraperStatus::SelectingComic:
case ScraperStatus::SelectingSeries:
case ScraperStatus::SortingComics:
break; break;
} }
} }
@ -562,7 +570,9 @@ void ComicVineDialog::search()
case ScraperMode::Volume: case ScraperMode::Volume:
launchSearchVolume(); launchSearchVolume();
break; break;
default:
case ScraperMode::SingleComic:
case ScraperMode::SingleComicInList:
launchSearchComic(); launchSearchComic();
break; break;
} }