diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/dotview.cpp')
-rw-r--r-- | sources/shiboken6/ApiExtractor/dotview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken6/ApiExtractor/dotview.cpp b/sources/shiboken6/ApiExtractor/dotview.cpp index da94f5e7f..0bd192257 100644 --- a/sources/shiboken6/ApiExtractor/dotview.cpp +++ b/sources/shiboken6/ApiExtractor/dotview.cpp @@ -13,7 +13,7 @@ using namespace Qt::StringLiterals; bool showDotGraph(const QString &name, const QString &graph) { - const QString imageType = u"jpg"_s; + constexpr auto imageType = "jpg"_L1; // Write out the graph to a temporary file QTemporaryFile dotFile(QDir::tempPath() + u'/' + name + u"_XXXXXX.dot"_s); @@ -43,9 +43,9 @@ bool showDotGraph(const QString &name, const QString &graph) // Launch image. Should use QDesktopServices::openUrl(), // but we don't link against QtGui #ifdef Q_OS_UNIX - const QString imageViewer = u"gwenview"_s; + constexpr auto imageViewer = "gwenview"_L1; #else - const QString imageViewer = u"mspaint"_s; + constexpr auto imageViewer = "mspaint"_L1; #endif if (!QProcess::startDetached(imageViewer, {imageFile})) { qWarning("Failed to launch viewer: %s", qPrintable(imageViewer)); |