From 1b4116db1af127fed6970b7a8c6289a4bc03dc13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 4 May 2025 17:33:39 +0200 Subject: [PATCH] Remove default cases from switches using enum class --- .../comic_vine/comic_vine_dialog.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp index 0e6e63d8..15282ed0 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp @@ -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; }