diff src/anilist.cpp @ 3:190ded9438c0

Fix many warnings
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 11:57:25 -0400
parents 23d0d9319a00
children 5af270662505
line wrap: on
line diff
--- a/src/anilist.cpp	Sat Aug 12 03:16:26 2023 -0400
+++ b/src/anilist.cpp	Sat Aug 12 11:57:25 2023 -0400
@@ -168,11 +168,9 @@
 	   if we can just get wide strings back from nlohmann::json */
 	for (const auto& list : res["data"]["MediaListCollection"]["lists"].items()) {
 		/* why are the .key() values strings?? */
-		int list_key = std::stoi(list.key());
 		AnimeList anime_list;
 		anime_list.name = StringUtils::Utf8ToWstr(JSON::GetString(list.value(), "name"));
 		for (const auto& entry : list.value()["entries"].items()) {
-			int entry_key = std::stoi(entry.key());
 			Anime anime;
 			anime.score = JSON::GetInt(entry.value(), "score");
 			anime.progress = JSON::GetInt(entry.value(), "progress");