diff options
author | hjk <[email protected]> | 2021-05-25 06:52:00 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2021-05-25 09:55:50 +0000 |
commit | 76db1e37465413c083732af119294a916864837e (patch) | |
tree | 0a4d2817ff88d7b032ab9fb8b754522b280f7998 /src/plugins/debugger/breakhandler.cpp | |
parent | 925c49a1f178f3fcb9df2f0437b8cfcdb81d3720 (diff) |
Core: Add FilePath based overloads to EditorManager::openEditor{,at}
Part of the overall FilePath migration. Keep the original version for
a while to allow using code to catch up.
Change-Id: Ia7c5ea14416a06e679e8661c0e4045981db87b9b
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: David Schulz <[email protected]>
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r-- | src/plugins/debugger/breakhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 23bd120e00c..3c8ff25345b 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -1490,7 +1490,7 @@ void BreakHandler::gotoLocation(const Breakpoint &bp) const // Don't use gotoLocation unconditionally as this ends up in // disassembly if OperateByInstruction is on. But fallback // to disassembly if we can't open the file. - if (IEditor *editor = EditorManager::openEditor(bp->markerFileName().toString())) + if (IEditor *editor = EditorManager::openEditor(bp->markerFileName())) editor->gotoLine(bp->markerLineNumber(), 0); else m_engine->openDisassemblerView(Location(bp->m_parameters.address)); @@ -2694,7 +2694,7 @@ bool BreakpointManager::contextMenuEvent(const ItemViewEvent &ev) void BreakpointManager::gotoLocation(const GlobalBreakpoint &gbp) const { QTC_ASSERT(gbp, return); - if (IEditor *editor = EditorManager::openEditor(gbp->markerFileName().toString())) + if (IEditor *editor = EditorManager::openEditor(gbp->markerFileName())) editor->gotoLine(gbp->markerLineNumber(), 0); } |