Fix warning about cast from ASCII.
Change-Id: Icc251a8d26db022077c84ff2d0911868b56c9fd6 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
7cccb7b924
commit
81f3b354df
@ -1235,7 +1235,7 @@ bool QImageReader::read(QImage *image)
|
||||
}
|
||||
|
||||
// successful read; check for "@2x" file name suffix and set device pixel ratio.
|
||||
if (QFileInfo(fileName()).baseName().endsWith("@2x")) {
|
||||
if (QFileInfo(fileName()).baseName().endsWith(QLatin1String("@2x"))) {
|
||||
image->setDevicePixelRatio(2.0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user