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 b0ad9f3a authored by Laurent Montel's avatar Laurent Montel 😁

Fix some clazy warning

parent 331adf72
......@@ -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(QLatin1String(".png"))) {
if (fileName.endsWith(QLatin1String(".png"), Qt::CaseInsensitive)) {
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(QLatin1String(".png"))) {
if (fileName.endsWith(QLatin1String(".png"), Qt::CaseInsensitive)) {
QImage image;
if (image.load(dir.path() + QLatin1Char('/') + fileName)) {
addImage(image, fileName);
......
......@@ -28,8 +28,9 @@ class IdendentitiesCache : public QObject
{
Q_OBJECT
public:
IdendentitiesCache()
: mIdentityManager(/*ro=*/ true)
explicit IdendentitiesCache(QObject *parent = nullptr)
: QObject(parent),
mIdentityManager(/*ro=*/ true)
{
connect(&mIdentityManager, QOverload<>::of(&IdentityManager::changed), this, &IdendentitiesCache::slotIdentitiesChanged);
slotIdentitiesChanged();
......
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