Use qAsConst

It's available now and much easier to read.
This commit is contained in:
Luís Pereira
2020-06-02 15:53:51 +00:00
committed by Chih-Hsuan Yen
parent 106a8966ee
commit 60836291f6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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())