Fix clazy warning

This commit is contained in:
Nicolas Werner 2022-07-09 00:42:44 +02:00
parent 931855441a
commit b516202a8c
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -42,7 +42,7 @@ AliasEditingModel::AliasEditingModel(const std::string &rid, QObject *parent)
}
}
for (const auto &alias : aliases) {
for (const auto &alias : qAsConst(aliases)) {
fetchAliasesStatus(alias.alias);
}
fetchPublishedAliases();
@ -148,7 +148,7 @@ void
AliasEditingModel::addAlias(QString newAlias)
{
const auto aliasStr = newAlias.toStdString();
for (const auto &e : aliases) {
for (const auto &e : qAsConst(aliases)) {
if (e.alias == aliasStr) {
return;
}