Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy!
This commit is contained in:
committed by
wmayer
parent
216106e407
commit
317bcd59c9
@@ -278,8 +278,8 @@ QPixmap BitmapFactoryInst::pixmap(const char* name) const
|
||||
if (!loadPixmap(fileName, icon)) {
|
||||
// Go through supported file formats
|
||||
for (QList<QByteArray>::iterator fm = formats.begin(); fm != formats.end(); ++fm) {
|
||||
QString path = QString::fromLatin1("%1.%2").arg(fileName).
|
||||
arg(QString::fromLatin1((*fm).toLower().constData()));
|
||||
QString path = QString::fromLatin1("%1.%2").arg(fileName,
|
||||
QString::fromLatin1((*fm).toLower().constData()));
|
||||
if (loadPixmap(path, icon)) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user