fix c++11 range-loop might detach Qt container
This commit is contained in:
parent
d113733ce0
commit
c5af3543e6
2 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ DelegateChooser::clearChoices(QQmlListProperty<DelegateChoice> *p)
|
|||
void
|
||||
DelegateChooser::recalcChild()
|
||||
{
|
||||
for (const auto choice : choices_) {
|
||||
for (const auto choice : qAsConst(choices_)) {
|
||||
auto choiceValue = choice->roleValue();
|
||||
if (!roleValue_.isValid() || !choiceValue.isValid() || choiceValue == roleValue_) {
|
||||
if (child) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue