diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-11 02:27:35 -0600 |
|---|---|---|
| committer | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2025-01-11 02:27:35 -0600 |
| commit | 2389ecfa976d53a355b1fd25ed6e2ed46aa20825 (patch) | |
| tree | 336ff014e8fd2aecac5f3f487fe57b51c92b25f6 /src | |
| parent | dd378d1040aef7f3e2205c8b05100a5cf7dd0743 (diff) | |
avoid loop container detach
Diffstat (limited to 'src')
| -rw-r--r-- | src/courtroom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 839d1859..e1246bb5 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -1407,7 +1407,7 @@ void Courtroom::set_background(QString p_background, bool display) // Populate the dropdown list with all pos that exist on this bg QStringList pos_list = {}; - for (const QString &key : default_pos) + for (const QString &key : std::as_const(default_pos)) { if (file_exists(ao_app->get_image_suffix(ao_app->get_background_path(default_pos[key]))) || // if we have 2.8-style positions, e.g. def.png, wit.webp, hld.apng file_exists(ao_app->get_image_suffix(ao_app->get_background_path(key)))) |
