| 499 | } |
| 500 | |
| 501 | std::string NWidgetBadgeFilter::GetStringParameter(const BadgeFilterChoices &choices) const |
| 502 | { |
| 503 | auto it = choices.find(this->badge_class); |
| 504 | if (it == std::end(choices)) { |
| 505 | return ::GetString(STR_BADGE_FILTER_ANY_LABEL, GetClassBadge(this->badge_class)->name); |
| 506 | } |
| 507 | |
| 508 | return ::GetString(STR_BADGE_FILTER_IS_LABEL, GetClassBadge(it->first)->name, GetBadge(it->second)->name); |
| 509 | } |
| 510 | |
| 511 | /** |
| 512 | * Get the drop down list of badges for this filter. |
no test coverage detected