mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix clazy warning
This commit is contained in:
parent
931855441a
commit
b516202a8c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
fetchAliasesStatus(alias.alias);
|
||||||
}
|
}
|
||||||
fetchPublishedAliases();
|
fetchPublishedAliases();
|
||||||
|
@ -148,7 +148,7 @@ void
|
||||||
AliasEditingModel::addAlias(QString newAlias)
|
AliasEditingModel::addAlias(QString newAlias)
|
||||||
{
|
{
|
||||||
const auto aliasStr = newAlias.toStdString();
|
const auto aliasStr = newAlias.toStdString();
|
||||||
for (const auto &e : aliases) {
|
for (const auto &e : qAsConst(aliases)) {
|
||||||
if (e.alias == aliasStr) {
|
if (e.alias == aliasStr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue