Mercurial > minori
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 263:96416310ea14 | 264:9a04802848c0 |
|---|---|
| 3 | 3 |
| 4 #include "core/date.h" | 4 #include "core/date.h" |
| 5 #include <array> | 5 #include <array> |
| 6 #include <map> | 6 #include <map> |
| 7 #include <vector> | 7 #include <vector> |
| 8 #include <optional> | |
| 8 | 9 |
| 9 namespace Anime { | 10 namespace Anime { |
| 10 | 11 |
| 11 enum class ListStatus { | 12 enum class ListStatus { |
| 12 NOT_IN_LIST, | 13 NOT_IN_LIST, |
| 184 bool IsInUserList() const; | 185 bool IsInUserList() const; |
| 185 void RemoveFromUserList(); | 186 void RemoveFromUserList(); |
| 186 | 187 |
| 187 private: | 188 private: |
| 188 SeriesInformation info_; | 189 SeriesInformation info_; |
| 189 std::shared_ptr<struct ListInformation> list_info_; | 190 std::optional<struct ListInformation> list_info_ = std::nullopt; |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 } // namespace Anime | 193 } // namespace Anime |
| 193 | 194 |
| 194 #endif // MINORI_CORE_ANIME_H_ | 195 #endif // MINORI_CORE_ANIME_H_ |
