| 2806 | } |
| 2807 | |
| 2808 | template <class ComponentType> std::unique_ptr<ComponentType> AppWindow::MoveComponent() |
| 2809 | { |
| 2810 | for (auto iter = m_components.begin(); iter != m_components.end(); iter++) |
| 2811 | { |
| 2812 | if (dynamic_cast<ComponentType*>(iter->get())) |
| 2813 | { |
| 2814 | auto wanted = reinterpret_cast<std::unique_ptr<ComponentType>&&>(std::move(*iter)); |
| 2815 | m_components.erase(iter); |
| 2816 | return std::move(wanted); |
| 2817 | } |
| 2818 | } |
| 2819 | return nullptr; |
| 2820 | } |
| 2821 | |
| 2822 | void AppWindow::SetDocumentTitle(PCWSTR titleText) |
| 2823 | { |
nothing calls this directly
no outgoing calls
no test coverage detected