Fix clazy warning

pull/1062/head
Nicolas Werner 2 years ago
parent 931855441a
commit b516202a8c
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 4
      src/AliasEditModel.cpp

@ -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;
}

Loading…
Cancel
Save