Skip to content

Commit 2389ecf

Browse files
committed
avoid loop container detach
1 parent dd378d1 commit 2389ecf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/courtroom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ void Courtroom::set_background(QString p_background, bool display)
14071407

14081408
// Populate the dropdown list with all pos that exist on this bg
14091409
QStringList pos_list = {};
1410-
for (const QString &key : default_pos)
1410+
for (const QString &key : std::as_const(default_pos))
14111411
{
14121412
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
14131413
file_exists(ao_app->get_image_suffix(ao_app->get_background_path(key))))

0 commit comments

Comments
 (0)