diff include/core/anime.h @ 264:9a04802848c0

*: improve multiple things e.g. making some strings.cc functions modify strings in-place, improving m4_ax_have_qt.m4 code, making anime_db.cc rely on std::optional rather than std::shared_ptr (which was stupid anyway)
author Paper <paper@paper.us.eu.org>
date Thu, 11 Apr 2024 10:15:57 -0400
parents 3ec7804abf17
children 657fda1b9cac
line wrap: on
line diff
--- a/include/core/anime.h	Wed Apr 03 20:46:40 2024 -0400
+++ b/include/core/anime.h	Thu Apr 11 10:15:57 2024 -0400
@@ -5,6 +5,7 @@
 #include <array>
 #include <map>
 #include <vector>
+#include <optional>
 
 namespace Anime {
 
@@ -186,7 +187,7 @@
 
 private:
 	SeriesInformation info_;
-	std::shared_ptr<struct ListInformation> list_info_;
+	std::optional<struct ListInformation> list_info_ = std::nullopt;
 };
 
 } // namespace Anime