MCPcopy Create free account
hub / github.com/audacity/audacity / CompareEffectsByType

Function CompareEffectsByType

src/menus/MenuHelper.cpp:478–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478bool CompareEffectsByType(const PluginDescriptor *a, const PluginDescriptor *b)
479{
480 auto &em = EffectManager::Get();
481 auto akey = em.GetEffectFamilyName(a->GetID());
482 auto bkey = em.GetEffectFamilyName(b->GetID());
483
484 if (akey.empty())
485 akey = XO("Uncategorized");
486 if (bkey.empty())
487 bkey = XO("Uncategorized");
488
489 return
490 std::make_tuple(
491 akey.Translation(), a->GetSymbol().Translation(), a->GetPath() ) <
492 std::make_tuple(
493 bkey.Translation(), b->GetSymbol().Translation(), b->GetPath() );
494}
495
496bool ComapareEffectsByTypeAndPublisher(const PluginDescriptor *a, const PluginDescriptor *b)
497{

Callers

nothing calls this directly

Calls 7

GetFunction · 0.85
GetEffectFamilyNameMethod · 0.80
TranslationMethod · 0.80
GetIDMethod · 0.45
emptyMethod · 0.45
GetSymbolMethod · 0.45
GetPathMethod · 0.45

Tested by

no test coverage detected