diff options
author | hjk <[email protected]> | 2025-01-09 11:58:40 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2025-01-10 13:05:29 +0000 |
commit | 2d9d6aa315976dc8937381e453f57263950d8841 (patch) | |
tree | 7ccb860763e95ad24272b158ead690afb79e9c3b /src/plugins/debugger/cdb | |
parent | 0986822d44c80ee1fc8fef0289a05ccc2d4d3668 (diff) |
Utils: Rename FilePath::toString() into toUrlishString()
toString() is almost always the wrong conversion, but unfortunately
too easy to find and often even working at least for local setup.
This here raises the bar as the non-availability of the "obvious"
toString() hopefully helps people to think about the semantics of
the needed conversion and choose the right toXXX() function.
The chosen new name is intentional ugly to reduce the likelihood
that this (still almost always wrong) function is used out of
convenience.
Change-Id: I57f1618dd95ef2629d7d978688d130275e096c0f
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/debugger/cdb')
-rw-r--r-- | src/plugins/debugger/cdb/cdbengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index c905055e731..6c1907941fd 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -2466,7 +2466,7 @@ unsigned BreakpointCorrectionContext::fixLineNumber(const FilePath &filePath, } if (debug) qDebug("Code model: Breakpoint line %u -> %u in %s", - lineNumber, correctedLine, qPrintable(filePath.toString())); + lineNumber, correctedLine, qPrintable(filePath.toUrlishString())); return correctedLine; } @@ -2654,7 +2654,7 @@ unsigned CdbEngine::parseStackTrace(const GdbMi &data, bool sourceStepInto) return ParseStackStepOut; } if (hasFile) { - const NormalizedSourceFileName fileName = sourceMapNormalizeFileNameFromDebugger(frames.at(i).file.toString()); + const NormalizedSourceFileName fileName = sourceMapNormalizeFileNameFromDebugger(frames.at(i).file.toUrlishString()); if (!fileName.exists && i == 0 && sourceStepInto) { showMessage("Step into: Hit frame with no source, step out...", LogMisc); return ParseStackStepOut; |