Use qAsConst
It's available now and much easier to read.
This commit is contained in:
committed by
Chih-Hsuan Yen
parent
106a8966ee
commit
60836291f6
+1
-1
@@ -85,7 +85,7 @@ const QStringList get_color_schemes_dirs()
|
||||
rval << (QCoreApplication::applicationDirPath() + QLatin1String("/../Resources/color-schemes/"));
|
||||
}
|
||||
#endif
|
||||
for (const QString& custom_dir : const_cast<const QStringList&>(custom_color_schemes_dirs))
|
||||
for (const QString& custom_dir : qAsConst(custom_color_schemes_dirs))
|
||||
{
|
||||
d.setPath(custom_dir);
|
||||
if (d.exists())
|
||||
|
||||
Reference in New Issue
Block a user