aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppcheck/cppcheckdiagnosticview.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2021-05-28 12:37:35 +0200
committerDavid Schulz <david.schulz@qt.io>2021-06-09 06:57:42 +0000
commit0cfe27a53d6f3ccf231e4c05069c0bbe72286757 (patch)
tree84a8b4e9f1c782738f3fb4bd4c3b2df732bd2bd8 /src/plugins/cppcheck/cppcheckdiagnosticview.cpp
parent27f8e2dbce774410c5443a7f425eb53c2a869f54 (diff)
Debugger: filepathify DiagnosticLocation
Change-Id: Ibbbf137231b313ec10e3d57c0230217b0c1e0a6c Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckdiagnosticview.cpp')
-rw-r--r--src/plugins/cppcheck/cppcheckdiagnosticview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckdiagnosticview.cpp b/src/plugins/cppcheck/cppcheckdiagnosticview.cpp
index 1f881e5330b..2fda6653050 100644
--- a/src/plugins/cppcheck/cppcheckdiagnosticview.cpp
+++ b/src/plugins/cppcheck/cppcheckdiagnosticview.cpp
@@ -103,7 +103,7 @@ void DiagnosticView::openEditorForCurrentIndex()
const QVariant v = model()->data(currentIndex(), Debugger::DetailedErrorView::LocationRole);
const auto loc = v.value<Debugger::DiagnosticLocation>();
if (loc.isValid())
- Core::EditorManager::openEditorAt(loc.filePath, loc.line, loc.column - 1);
+ Core::EditorManager::openEditorAt(Utils::Link(loc.filePath, loc.line, loc.column - 1));
}
void DiagnosticView::mouseDoubleClickEvent(QMouseEvent *event)