Mercurial > minori
comparison src/core/anime.cpp @ 36:2743011a6042
*: mass update
formatted all source files, converted ALL instances of setStyleSheet() to
palettes and fonts (stylesheets suck), and I changed the clang-format file because
it wasn't working on my laptop for some reason.
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Thu, 21 Sep 2023 15:17:47 -0400 |
| parents | 4b198a111713 |
| children | 6481c5aed3e1 |
comparison
equal
deleted
inserted
replaced
| 35:329b7921a6be | 36:2743011a6042 |
|---|---|
| 146 } | 146 } |
| 147 | 147 |
| 148 std::vector<std::string> Anime::GetTitleSynonyms() const { | 148 std::vector<std::string> Anime::GetTitleSynonyms() const { |
| 149 std::vector<std::string> result; | 149 std::vector<std::string> result; |
| 150 #define IN_VECTOR(v, k) (std::count(v.begin(), v.end(), k)) | 150 #define IN_VECTOR(v, k) (std::count(v.begin(), v.end(), k)) |
| 151 #define ADD_TO_SYNONYMS(v, k) \ | 151 #define ADD_TO_SYNONYMS(v, k) \ |
| 152 if (!k.empty() && !IN_VECTOR(v, k) && k != GetUserPreferredTitle()) \ | 152 if (!k.empty() && !IN_VECTOR(v, k) && k != GetUserPreferredTitle()) \ |
| 153 v.push_back(k) | 153 v.push_back(k) |
| 154 ADD_TO_SYNONYMS(result, info_.title.english); | 154 ADD_TO_SYNONYMS(result, info_.title.english); |
| 155 ADD_TO_SYNONYMS(result, info_.title.romaji); | 155 ADD_TO_SYNONYMS(result, info_.title.romaji); |
| 156 ADD_TO_SYNONYMS(result, info_.title.native); | 156 ADD_TO_SYNONYMS(result, info_.title.native); |
| 157 for (auto& synonym : info_.synonyms) { | 157 for (auto& synonym : info_.synonyms) { |
