summary refs log tree commit diff
path: root/src/timeline/DelegateChooser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeline/DelegateChooser.cpp')
-rw-r--r--src/timeline/DelegateChooser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/DelegateChooser.cpp b/src/timeline/DelegateChooser.cpp
index 632a2a64..46ab6c0e 100644
--- a/src/timeline/DelegateChooser.cpp
+++ b/src/timeline/DelegateChooser.cpp
@@ -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) {