diff --git a/lib/jkqtcommon/jkqtpcsstools.cpp b/lib/jkqtcommon/jkqtpcsstools.cpp index 3be88c5419..48964705b6 100644 --- a/lib/jkqtcommon/jkqtpcsstools.cpp +++ b/lib/jkqtcommon/jkqtpcsstools.cpp @@ -214,7 +214,7 @@ JKQTPExpected JKQTPCSSParser::parseGrad static QMap s_GradientPresets = []() { QMap m; - for (int i=1; i().keyCount(); i++) { const QString id=QString(QMetaEnum::fromType().valueToKey(static_cast(i))).toLower().trimmed().simplified(); if (id.size()>0) m[id]=static_cast(i); } diff --git a/lib/jkqtcommon/jkqtpstringtools.cpp b/lib/jkqtcommon/jkqtpstringtools.cpp index d31f595621..72068a2e68 100644 --- a/lib/jkqtcommon/jkqtpstringtools.cpp +++ b/lib/jkqtcommon/jkqtpstringtools.cpp @@ -393,7 +393,7 @@ namespace { static QMap s_GradientPresets = []() { QMap m; - for (int i=1; i().keyCount(); i++) { const QString id=QString(QMetaEnum::fromType().valueToKey(static_cast(i))).toLower().trimmed().simplified(); if (id.size()>0) m[id]=static_cast(i); }