diff --git a/kdevplatform/project/helper.cpp b/kdevplatform/project/helper.cpp index f9619984ec2f04ca84e32cf4fe39fad214a25e46..46a2e57d68f7bcc4536ba2d3125cd80972ba2a9e 100644 --- a/kdevplatform/project/helper.cpp +++ b/kdevplatform/project/helper.cpp @@ -222,7 +222,7 @@ Path KDevelop::proposedBuildFolder(const Path& sourceFolder) { Path proposedBuildFolder; if (sourceFolder.path().contains(QLatin1String("/src/"))) { - const QString srcBuildPath = sourceFolder.path().replace(QStringLiteral("/src/"), QStringLiteral("/build/")); + const QString srcBuildPath = sourceFolder.path().replace(QLatin1String("/src/"), QLatin1String("/build/")); Q_ASSERT(!srcBuildPath.isEmpty()); if (QDir(srcBuildPath).exists()) { proposedBuildFolder = Path(srcBuildPath); diff --git a/kdevplatform/util/kdevformatfile.cpp b/kdevplatform/util/kdevformatfile.cpp index b1aff0e347ce6209149be721597646b9c97b8d14..79c98b22dd5656eeecd37bbdd93e9a64f1617429 100644 --- a/kdevplatform/util/kdevformatfile.cpp +++ b/kdevplatform/util/kdevformatfile.cpp @@ -127,8 +127,8 @@ bool KDevFormatFile::executeCommand(QString command) { qStdOut() << ", using command \"" << command << "\"\n"; - command.replace(QStringLiteral("$ORIGFILE"), m_origFilePath); - command.replace(QStringLiteral("$TMPFILE"), m_tempFilePath); + command.replace(QLatin1String("$ORIGFILE"), m_origFilePath); + command.replace(QLatin1String("$TMPFILE"), m_tempFilePath); #ifdef Q_OS_WIN int execResult = QProcess::execute(QStringLiteral("cmd"), {QStringLiteral("/c"), command}); diff --git a/plugins/clangtidy/parsers/clangtidyparser.cpp b/plugins/clangtidy/parsers/clangtidyparser.cpp index 9fe26c889207a5f41599ac0d7735f52b61611600..5f1309fba870469d69a2f0e9646d9dea0d25d6b6 100644 --- a/plugins/clangtidy/parsers/clangtidyparser.cpp +++ b/plugins/clangtidy/parsers/clangtidyparser.cpp @@ -52,7 +52,7 @@ QString verboseMessageToHtml(const QString& input) { QString output(QStringLiteral("%1").arg(input.toHtmlEscaped())); - output.replace(QStringLiteral("\\012"), QStringLiteral("\n")); + output.replace(QLatin1String("\\012"), QLatin1String("\n")); if (output.count(QLatin1Char('\n')) >= 2) { output.replace(output.indexOf(QLatin1Char('\n')), 1, QStringLiteral("
"));