diff options
author | Christian Stenger <christian.stenger@qt.io> | 2021-08-03 09:36:52 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2021-08-03 07:46:39 +0000 |
commit | 40aeab6849168b65854db2fdbf4aa89929f64fec (patch) | |
tree | d9ca9268585ac184da6e130519403cad98cf9886 /src/libs/utils/link.cpp | |
parent | a6b73dc501819f81c0754b4a29c2cd325eb17952 (diff) |
Utils: Do not omit scheme and host on Link creation
Change-Id: I864c6145f6a7357e0339b64e1990d516db349ccd
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/utils/link.cpp')
-rw-r--r-- | src/libs/utils/link.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/utils/link.cpp b/src/libs/utils/link.cpp index a052bb90c8f..884936a7bb9 100644 --- a/src/libs/utils/link.cpp +++ b/src/libs/utils/link.cpp @@ -60,7 +60,7 @@ Link Link::fromFilePath(const FilePath &filePath, bool canContainLineNumber, QSt const LineColumn lineColumn = LineColumn::extractFromFileName(fileName, postfixPos); if (postfix && postfixPos >= 0) *postfix = fileName.mid(postfixPos); - return Link{FilePath::fromString(fileName.left(postfixPos)), lineColumn.line, lineColumn.column}; + return Link{filePath.withNewPath(fileName.left(postfixPos)), lineColumn.line, lineColumn.column}; } uint qHash(const Link &l) |