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/help/macwebkithelpviewer.mm | |
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/help/macwebkithelpviewer.mm')
-rw-r--r-- | src/plugins/help/macwebkithelpviewer.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/help/macwebkithelpviewer.mm b/src/plugins/help/macwebkithelpviewer.mm index 68cfa56debf..c62ee3d7773 100644 --- a/src/plugins/help/macwebkithelpviewer.mm +++ b/src/plugins/help/macwebkithelpviewer.mm @@ -575,7 +575,7 @@ void MacWebKitHelpViewer::setHtml(const QString &html) [m_widget->webView().mainFrame loadHTMLString:html.toNSString() baseURL:[NSURL - fileURLWithPath:Core::ICore::resourcePath().toString().toNSString()]]; + fileURLWithPath:Core::ICore::resourcePath().toUrlishString().toNSString()]]; } } |