Use reference

This commit is contained in:
Chocobo1 2023-05-06 21:31:59 +08:00
parent b185153254
commit e375f3ee0b
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -40,7 +40,7 @@ class CategoryModelItem
public:
CategoryModelItem() = default;
CategoryModelItem(CategoryModelItem *parent, QString categoryName, int torrentsCount = 0)
CategoryModelItem(CategoryModelItem *parent, const QString &categoryName, const int torrentsCount = 0)
: m_name(categoryName)
, m_torrentsCount(torrentsCount)
{