summary refs log tree commit diff
path: root/src/timeline/DelegateChooser.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-28 22:30:12 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-28 22:30:12 +0100
commitbb290f9fecc48d407c2bc75a64b0e8a94bc3aeba (patch)
tree4a663d6987c615c9c2b01bec903bfe125ee58cf3 /src/timeline/DelegateChooser.cpp
parentRemove unused button class (diff)
downloadnheko-bb290f9fecc48d407c2bc75a64b0e8a94bc3aeba.tar.xz
Fix more warnings and remove dead code
Diffstat (limited to '')
-rw-r--r--src/timeline/DelegateChooser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/DelegateChooser.cpp b/src/timeline/DelegateChooser.cpp

index 682077ae..f0511f51 100644 --- a/src/timeline/DelegateChooser.cpp +++ b/src/timeline/DelegateChooser.cpp
@@ -132,7 +132,8 @@ DelegateChooser::DelegateIncubator::statusChanged(QQmlIncubator::Status status) emit chooser.childChanged(); } else if (status == QQmlIncubator::Error) { - for (const auto &e : errors()) + auto errors_ = errors(); + for (const auto &e : qAsConst(errors_)) nhlog::ui()->error("Error instantiating delegate: {}", e.toString().toStdString()); } }