Use qlatin1char/qlatin1string

wilder-5.14
Laurent Montel 8 years ago
parent 6de7830e6e
commit 70b1fa657c
  1. 2
      klipper/historyurlitem.cpp
  2. 2
      runners/calculator/calculatorrunner.cpp

@ -55,7 +55,7 @@ QString HistoryURLItem::text() const {
bool first = true;
for (const QUrl &url : m_urls) {
if (!first) {
ret.append(QStringLiteral(" "));
ret.append(QLatin1Char(' '));
}
first = false;
ret.append(url.toString(QUrl::FullyEncoded));

@ -160,7 +160,7 @@ void CalculatorRunner::hexSubstitutions(QString& cmd)
{
if (cmd.contains(QStringLiteral("0x"))) {
//Append +0 so that the calculator can serve also as a hex converter
cmd.append(QStringLiteral("+0"));
cmd.append(QLatin1String("+0"));
bool ok;
int pos = 0;
QString hex;

Loading…
Cancel
Save