| 452 | } |
| 453 | |
| 454 | bool CompareEffectsByTypeAndName( |
| 455 | const PluginDescriptor *a, const PluginDescriptor *b) |
| 456 | { |
| 457 | auto &em = EffectManager::Get(); |
| 458 | auto akey = em.GetEffectFamilyName(a->GetID()); |
| 459 | auto bkey = em.GetEffectFamilyName(b->GetID()); |
| 460 | |
| 461 | if (akey.empty()) |
| 462 | akey = XO("Uncategorized"); |
| 463 | if (bkey.empty()) |
| 464 | bkey = XO("Uncategorized"); |
| 465 | |
| 466 | if (a->IsEffectDefault()) |
| 467 | akey = {}; |
| 468 | if (b->IsEffectDefault()) |
| 469 | bkey = {}; |
| 470 | |
| 471 | return |
| 472 | std::make_tuple( |
| 473 | akey.Translation(), a->GetSymbol().Translation(), a->GetPath() ) < |
| 474 | std::make_tuple( |
| 475 | bkey.Translation(), b->GetSymbol().Translation(), b->GetPath() ); |
| 476 | } |
| 477 | |
| 478 | bool CompareEffectsByType(const PluginDescriptor *a, const PluginDescriptor *b) |
| 479 | { |
nothing calls this directly
no test coverage detected