diff --git a/src/mischelpers.cpp b/src/mischelpers.cpp index 0be544755fa9125405ea786a8fd9c859719fdbbc..07699e67857ee3e8cedcdb0a9261af480e039e08 100644 --- a/src/mischelpers.cpp +++ b/src/mischelpers.cpp @@ -460,25 +460,26 @@ QString MiscHelpers::cleanupHtml(QString originalHtml) { QString cleanHtml = originalHtml; - cleanHtml.replace("\n", " "); // Remove line breaks, as that results in server error 500 + // Remove line breaks, as that results in server error 500 + cleanHtml.replace(QStringLiteral("\n"), QStringLiteral(" ")); - QRegExp doctypeRE(""); + QRegExp doctypeRE(QStringLiteral("")); doctypeRE.setMinimal(true); cleanHtml.remove(doctypeRE); - QRegExp headRE(".*"); + QRegExp headRE(QStringLiteral(".*")); headRE.setMinimal(true); cleanHtml.remove(headRE); - QRegExp bodyRE(""); + QRegExp bodyRE(QStringLiteral("")); bodyRE.setMinimal(true); cleanHtml.remove(bodyRE); //////////////////////////////////////// Remove from links - QRegExp linkStyleRE(".*"); + QRegExp linkStyleRE(QStringLiteral(".*")); linkStyleRE.setMinimal(true); - QRegExp spanRE("(.*)"); // FIXME: remove ONLY color info + QRegExp spanRE(QStringLiteral("(.*)")); // FIXME: remove ONLY color info spanRE.setMinimal(true); int pos = 0; @@ -497,26 +498,26 @@ QString MiscHelpers::cleanupHtml(QString originalHtml) } ////////////////////////////////////// Remove style from