forked from qt-creator/qt-creator
Replace QT_USE_FAST_{OPERATOR_PLUS,CONCATENTION} by QT_USE_QSTRINGBUILDER
QT_USE_FAST_CONCATENATION doesn't do anything nowadays. Using QT_USE_QSTRINGBUILDER is the same as QT_USE_FAST_OPERATOR_PLUS for QStrings and enables more QStringBuilder use for QByteArrays. Change-Id: Ibd297817c50d86661d47822799f989447249af1b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -402,7 +402,7 @@ QString saveImageFileFilter()
|
||||
{
|
||||
const auto imageFormats = QImageWriter::supportedImageFormats();
|
||||
const QByteArrayList supportedFormats = Utils::transform(imageFormats, [](const QByteArray &in)
|
||||
{ return QByteArray("*.") + in; });
|
||||
{ return QByteArray{"*." + in}; });
|
||||
return MainWidget::tr("Images (%1)").arg(QString::fromUtf8(supportedFormats.join(' ')));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user