MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / removeCachedModuleWidget

Method removeCachedModuleWidget

include/helpers.hpp:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 void removeCachedModuleWidget(engine::Module* const m) override
99 {
100 DISTRHO_SAFE_ASSERT_RETURN(m != nullptr,);
101 DISTRHO_SAFE_ASSERT_RETURN(m->model == this,);
102
103 if (widgets.find(m) == widgets.end())
104 return;
105
106 if (widgetNeedsDeletion[m])
107 delete widgets[m];
108
109 widgets.erase(m);
110 widgetNeedsDeletion.erase(m);
111 }
112};
113
114template <class TModule, class TModuleWidget>

Callers 2

json_array_foreachFunction · 0.80

Calls 2

eraseMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected