| 62 | |
| 63 | template <size_t Size> |
| 64 | [[nodiscard]] bool MatchesErrorPattern( |
| 65 | const QString &type, |
| 66 | const std::array<QString, Size> &patterns) { |
| 67 | for (const auto &pattern : patterns) { |
| 68 | if (!pattern.isEmpty() |
| 69 | && type.contains(pattern, Qt::CaseInsensitive)) { |
| 70 | return true; |
| 71 | } |
| 72 | } |
| 73 | return false; |
| 74 | } |
| 75 | |
| 76 | [[nodiscard]] PollData::VoteRestriction ParseVoteRestrictionError( |
| 77 | const QString &type) { |
no test coverage detected