comparison src/gui/translate/anilist.cpp @ 63:3d2decf093bb

*: fix many clang warnings
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 06:39:47 -0400
parents d8eb763e6661
children
comparison
equal deleted inserted replaced
62:4c6dd5999b39 63:3d2decf093bb
1 #include "gui/translate/anilist.h" 1 #include "gui/translate/anilist.h"
2 2
3 namespace Translate::AniList { 3 namespace Translate {
4 namespace AniList {
4 5
5 Anime::SeriesStatus ToSeriesStatus(std::string status) { 6 Anime::SeriesStatus ToSeriesStatus(std::string status) {
6 const std::unordered_map<std::string, Anime::SeriesStatus> map = { 7 const std::unordered_map<std::string, Anime::SeriesStatus> map = {
7 {"FINISHED", Anime::SeriesStatus::FINISHED }, 8 {"FINISHED", Anime::SeriesStatus::FINISHED },
8 {"RELEASING", Anime::SeriesStatus::RELEASING }, 9 {"RELEASING", Anime::SeriesStatus::RELEASING },
46 if (map.find(format) == map.end()) 47 if (map.find(format) == map.end())
47 return Anime::SeriesFormat::UNKNOWN; 48 return Anime::SeriesFormat::UNKNOWN;
48 return map.at(format); 49 return map.at(format);
49 } 50 }
50 51
51 } // namespace Translate::AniList 52 } // namespace AniList
53 } // namespace Translate