chore(clang-tidy): modernize the code

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2026-05-13 11:14:42 +03:00
parent 2b0b9824a3
commit 3435c6de48
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
8 changed files with 63 additions and 61 deletions

View file

@ -123,7 +123,7 @@ int Mod::compare(const Resource& other, SortType type) const
return 0;
}
bool Mod::applyFilter(QRegularExpression filter) const
bool Mod::applyFilter(const QRegularExpression& filter) const
{
if (filter.match(description()).hasMatch())
return true;
@ -225,8 +225,8 @@ auto Mod::authors() const -> QStringList
void Mod::finishResolvingWithDetails(ModDetails&& details)
{
m_is_resolving = false;
m_is_resolved = true;
m_isResolving = false;
m_isResolved = true;
m_local_details = std::move(details);
if (!iconPath().isEmpty()) {