diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2021-06-06 23:31:48 -0500 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2021-06-06 23:31:48 -0500 |
| commit | dcce1750525d0cca21ebaa7a65c1abc2ff36123c (patch) | |
| tree | 501bc12ec86cd5c69fc18ca40b5db3c499fd4e8b /src/path_functions.cpp | |
| parent | e576a8b23d1dec48553ef4a2de3bf5c7c6925633 (diff) | |
Fix clazy-range-loop-detach warning
Diffstat (limited to 'src/path_functions.cpp')
| -rw-r--r-- | src/path_functions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/path_functions.cpp b/src/path_functions.cpp index b15cc90b..3f197157 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); |
