forked from qt-creator/qt-creator
Debugger: Replace debuggerCore() by equivalent free functions
One indirection less on the user code side, and easier to export if needed (partially addressing QTCREATORBUG-13187) Change-Id: I13ab9f471a3a34da7a6331aefc83f6d02413bfab Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -297,7 +297,6 @@ void BreakHandler::saveBreakpoints()
|
||||
{
|
||||
const QString one = _("1");
|
||||
//qDebug() << "SAVING BREAKPOINTS...";
|
||||
QTC_ASSERT(debuggerCore(), return);
|
||||
QList<QVariant> list;
|
||||
ConstIterator it = m_storage.constBegin(), et = m_storage.constEnd();
|
||||
for ( ; it != et; ++it) {
|
||||
@@ -1210,7 +1209,7 @@ void BreakHandler::timerEvent(QTimerEvent *event)
|
||||
killTimer(m_syncTimerId);
|
||||
m_syncTimerId = -1;
|
||||
saveBreakpoints(); // FIXME: remove?
|
||||
debuggerCore()->synchronizeBreakpoints();
|
||||
Internal::synchronizeBreakpoints();
|
||||
}
|
||||
|
||||
void BreakHandler::gotoLocation(BreakpointModelId id) const
|
||||
|
||||
Reference in New Issue
Block a user