From e375f3ee0bf700d51ca289a8b8ca5b9793dd8b5f Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 6 May 2023 21:31:59 +0800 Subject: [PATCH] Use reference --- src/gui/transferlistfilters/categoryfiltermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/transferlistfilters/categoryfiltermodel.cpp b/src/gui/transferlistfilters/categoryfiltermodel.cpp index 99abeef62..cdb880500 100644 --- a/src/gui/transferlistfilters/categoryfiltermodel.cpp +++ b/src/gui/transferlistfilters/categoryfiltermodel.cpp @@ -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) {