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

Method ShouldEndGroup

libraries/lib-menus/MenuRegistry.cpp:87–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool detail::VisitorBase::ShouldEndGroup(
88 const ItemProperties *pProperties)
89{
90 const auto properties =
91 pProperties ? pProperties->GetProperties() : ItemProperties::None;
92
93 bool inlined = false;
94
95 switch (properties) {
96 case ItemProperties::Inline: {
97 inlined = true;
98 break;
99 }
100 case ItemProperties::Section: {
101 if ( !needSeparator.empty() )
102 needSeparator.back() = true;
103 break;
104 }
105 case ItemProperties::Whole:
106 case ItemProperties::Extension: {
107 firstItem.pop_back();
108 needSeparator.pop_back();
109 break;
110 }
111 default:
112 break;
113 }
114
115 return !inlined;
116}
117
118bool detail::VisitorBase::ShouldDoSeparator()
119{

Callers

nothing calls this directly

Calls 2

GetPropertiesMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected