MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Samples / DeleteComponent

Method DeleteComponent

SampleApps/WebView2APISample/AppWindow.cpp:2787–2797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2785}
2786
2787void AppWindow::DeleteComponent(ComponentBase* component)
2788{
2789 for (auto iter = m_components.begin(); iter != m_components.end(); iter++)
2790 {
2791 if (iter->get() == component)
2792 {
2793 m_components.erase(iter);
2794 return;
2795 }
2796 }
2797}
2798
2799void AppWindow::DeleteAllComponents()
2800{

Calls

no outgoing calls

Tested by

no test coverage detected