Use new QString::remove(QLatin1String)

Change-Id: I5b3560709a8fb230a177511c701fd0bf25938f0f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Anton Kudryavtsev 2018-02-02 19:49:18 +03:00 committed by Anton Kudryavtsev
parent 8bc4c3ae8f
commit 74045f8b9a
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSOpenSavePanelDelegate);
static QString strippedText(QString s)
{
s.remove( QString::fromLatin1("...") );
s.remove(QLatin1String("..."));
return QPlatformTheme::removeMnemonics(s).trimmed();
}

View File

@ -66,7 +66,7 @@ QT_BEGIN_NAMESPACE
*/
static QString qt_strippedText(QString s)
{
s.remove(QStringLiteral("..."));
s.remove(QLatin1String("..."));
for (int i = 0; i < s.size(); ++i) {
if (s.at(i) == QLatin1Char('&'))
s.remove(i, 1);