From dcce1750525d0cca21ebaa7a65c1abc2ff36123c Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Sun, 6 Jun 2021 23:31:48 -0500 Subject: [PATCH] Fix clazy-range-loop-detach warning --- src/path_functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path_functions.cpp b/src/path_functions.cpp index b15cc90..3f19715 100644 --- a/src/path_functions.cpp +++ b/src/path_functions.cpp @@ -150,7 +150,8 @@ QString AOApplication::get_config_value(QString p_identifier, QString p_config, { QString path; // 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); if (!path.isEmpty()) { QSettings settings(path, QSettings::IniFormat);