mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Remove default cases from switches using enum class
This commit is contained in:
parent
9d7a554ab3
commit
1b4116db1a
@ -198,7 +198,11 @@ void ComicVineDialog::goBack()
|
||||
else
|
||||
showSearchSingleComic();
|
||||
break;
|
||||
default:
|
||||
|
||||
case ScraperStatus::AskingForInfo:
|
||||
case ScraperStatus::SearchingSingleComic:
|
||||
case ScraperStatus::SearchingVolume:
|
||||
case ScraperStatus::GettingVolumeComics:
|
||||
if (mode == ScraperMode::Volume)
|
||||
showSearchVolume();
|
||||
else
|
||||
@ -441,7 +445,11 @@ void ComicVineDialog::queryTimeOut()
|
||||
case ScraperStatus::GettingVolumeComics:
|
||||
showSelectVolume();
|
||||
break;
|
||||
default:
|
||||
|
||||
case ScraperStatus::AskingForInfo:
|
||||
case ScraperStatus::SelectingComic:
|
||||
case ScraperStatus::SelectingSeries:
|
||||
case ScraperStatus::SortingComics:
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -562,7 +570,9 @@ void ComicVineDialog::search()
|
||||
case ScraperMode::Volume:
|
||||
launchSearchVolume();
|
||||
break;
|
||||
default:
|
||||
|
||||
case ScraperMode::SingleComic:
|
||||
case ScraperMode::SingleComicInList:
|
||||
launchSearchComic();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user