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

Method ~MIVariable

plugins/debuggercommon/mivariable.cpp:66–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66MIVariable::~MIVariable()
67{
68 if (!m_varobj.isEmpty())
69 {
70 // Delete only top-level variable objects.
71 if (topLevel()) {
72 if (sessionIsAlive()) {
73 m_debugSession->addCommand(VarDelete, QStringLiteral("\"%1\"").arg(m_varobj));
74 }
75 }
76 if (m_debugSession)
77 m_debugSession->variableMapping().remove(m_varobj);
78 }
79}
80
81void MIVariable::setVarobj(const QString& v)
82{

Callers

nothing calls this directly

Calls 3

addCommandMethod · 0.60
isEmptyMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected