Fix clazy-range-loop-detach warning

This commit is contained in:
oldmud0 2021-06-06 23:31:48 -05:00
parent e576a8b23d
commit dcce175052

View File

@ -150,7 +150,8 @@ QString AOApplication::get_config_value(QString p_identifier, QString p_config,
{ {
QString path; QString path;
// qDebug() << "got request for" << p_identifier << "in" << p_config; // qDebug() << "got request for" << p_identifier << "in" << p_config;
for (const VPath &p : get_asset_paths(p_config, p_theme, p_subtheme, p_default_theme, p_misc)) { const auto paths = get_asset_paths(p_config, p_theme, p_subtheme, p_default_theme, p_misc);
for (const VPath &p : paths) {
path = get_real_path(p); path = get_real_path(p);
if (!path.isEmpty()) { if (!path.isEmpty()) {
QSettings settings(path, QSettings::IniFormat); QSettings settings(path, QSettings::IniFormat);