Use new QString::remove(QLatin1String)
Change-Id: I5b3560709a8fb230a177511c701fd0bf25938f0f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8bc4c3ae8f
commit
74045f8b9a
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user