Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0595f02a authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent 58b0026e
......@@ -211,7 +211,7 @@ void SignaturePrivate::cleanupImages()
QDir dir(saveLocation);
const QStringList lst = dir.entryList(QDir::Files | QDir::NoDotAndDotDot | QDir::NoSymLinks);
for (const QString &fileName : lst) {
if (fileName.toLower().endsWith(QStringLiteral(".png"))) {
if (fileName.toLower().endsWith(QLatin1String(".png"))) {
qCDebug(KIDENTITYMANAGEMENT_LOG) << "Deleting old image" << dir.path() + fileName;
dir.remove(fileName);
}
......@@ -475,7 +475,7 @@ void Signature::readConfig(const KConfigGroup &config)
QDir dir(d->saveLocation);
const QStringList lst = dir.entryList(QDir::Files | QDir::NoDotAndDotDot | QDir::NoSymLinks);
for (const QString &fileName : lst) {
if (fileName.toLower().endsWith(QStringLiteral(".png"))) {
if (fileName.toLower().endsWith(QLatin1String(".png"))) {
QImage image;
if (image.load(dir.path() + QLatin1Char('/') + fileName)) {
addImage(image, fileName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment