QString::remove operates on the same object, no need to reassign

wilder
Laurent Montel 7 years ago
parent 049c80dca2
commit bd6d72f744
  1. 2
      src/identity/xfaceconfigurator.cpp

@ -276,7 +276,7 @@ void XFaceConfigurator::slotUpdateXFace()
if (!str.isEmpty()) { if (!str.isEmpty()) {
if (str.startsWith(QLatin1String("x-face:"), Qt::CaseInsensitive)) { if (str.startsWith(QLatin1String("x-face:"), Qt::CaseInsensitive)) {
str = str.remove(QStringLiteral("x-face:"), Qt::CaseInsensitive); str.remove(QStringLiteral("x-face:"), Qt::CaseInsensitive);
mTextEdit->editor()->setPlainText(str); mTextEdit->editor()->setPlainText(str);
} }
KXFace xf; KXFace xf;

Loading…
Cancel
Save