mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +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);
|
||||
}
|
||||
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…
Reference in a new issue