MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / RemoveAdvanced

Method RemoveAdvanced

WinArk/EventConfiguration.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32int EventsConfiguration::RemoveAdvanced(bool advanced) {
33 auto it = std::remove_if(_categories.begin(), _categories.end(), [&](const auto& cat) {
34 return KernelEventCategory::GetCategory(cat.Name.c_str())->Advanced == advanced;
35 });
36 _categories.erase(it, _categories.end());
37
38 return 0;
39}
40
41bool EventsConfiguration::Save(PCWSTR path) {
42 ::DeleteFile(path);

Callers 2

SwitchToAdvancedViewMethod · 0.80
OnCloseCmdMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected