aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/breakhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2014-10-22 13:04:47 +0200
committerhjk <[email protected]>2014-10-23 14:12:33 +0200
commit9ba17acc8016554fcd4311e112a90a993d791ba3 (patch)
treee8e37aa26e8a6a463e897b231485d7ede7d64a92 /src/plugins/debugger/breakhandler.cpp
parent6b4c254bf3644a2a9aefafc73309806372c8366b (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r--src/plugins/debugger/breakhandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 70459ddfcdf..0ea3671cae6 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -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