Little optimization
--HG-- branch : feature
This commit is contained in:
parent
1d959cb747
commit
ecfdafddfc
|
@ -663,11 +663,11 @@ void DialogPatternProperties::SetNewImage()
|
|||
QFileInfo f(fileName);
|
||||
QString extension = f.suffix().toUpper();
|
||||
|
||||
if (extension == "JPEG")
|
||||
if (extension == QLatin1String("JPEG"))
|
||||
{
|
||||
extension = "JPG";
|
||||
}
|
||||
if (extension == "PNG" || extension == "JPG" || extension == "BMP")
|
||||
if (extension == QLatin1String("PNG") || extension == QLatin1String("JPG") || extension == QLatin1String("BMP"))
|
||||
{
|
||||
QByteArray byteArray;
|
||||
QBuffer buffer(&byteArray);
|
||||
|
|
Loading…
Reference in New Issue
Block a user