qt: use const reference in medialib.cpp

This commit is contained in:
Fatih Uzunoglu 2024-04-05 15:23:53 +03:00 committed by Steve Lhomme
parent 6a9b9ba244
commit 839924f737
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ void MediaLib::mlInputItem(const QVector<MLItemId>& itemIdVector, QJSValue callb
i++;
}
for (auto cb : qAsConst(it.value())) // TODO: Qt 6 use const reference
for (const auto& cb : qAsConst(it.value()))
{
cb.call({jsArray});
}