MCPcopy Create free account
hub / github.com/KDE/kdevelop / ~ToolViewFactoryHolder

Method ~ToolViewFactoryHolder

plugins/gdb/toolviewfactoryholder.cpp:47–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47ToolViewFactoryHolder::~ToolViewFactoryHolder()
48{
49 auto* const core = KDevelop::ICore::self();
50 if (!core || core->shuttingDown()) {
51 // NOTE: cannot print plugin() because it may return a dangling pointer if the factories are already destroyed.
52 qCDebug(DEBUGGERGDB) << "not unregistering GDB tool views, because KDevelop is exiting";
53 return;
54 }
55 qCDebug(DEBUGGERGDB) << "unregistering GDB tool views for" << plugin();
56 auto* const uiController = core->uiController();
57
58 uiController->removeToolView(m_disassembleFactory);
59 uiController->removeToolView(m_gdbOutputFactory);
60#ifdef KDEV_WITH_MEMVIEW
61 uiController->removeToolView(m_memoryViewerFactory);
62#endif
63}
64
65const KDevMI::MIDebuggerPlugin* ToolViewFactoryHolder::plugin() const
66{

Callers

nothing calls this directly

Calls 3

shuttingDownMethod · 0.80
uiControllerMethod · 0.80
removeToolViewMethod · 0.45

Tested by

no test coverage detected