Commit 64b87412 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 9cd2aa49
......@@ -418,14 +418,12 @@ Type type(const QString &mimeType)
Types types(const QStringList &mimeTypes)
{
Types types = nullptr;
foreach (const QString &type, mimeTypes) {
for (const QString &type : mimeTypes) {
if (type == MIME_ACTIVE) {
types |= ACTIVE;
}
if (type == MIME_ARCHIVED) {
} else if (type == MIME_ARCHIVED) {
types |= ARCHIVED;
}
if (type == MIME_TEMPLATE) {
} else if (type == MIME_TEMPLATE) {
types |= TEMPLATE;
}
}
......
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