diff options
| author | Jeremy Rimpo <jrim@rimpo.org> | 2023-09-24 05:46:09 -0500 |
|---|---|---|
| committer | Jeremy Rimpo <jrim@rimpo.org> | 2023-09-24 05:54:27 -0500 |
| commit | c30b5183aeea55290ec9072cac958cd6e90fdf30 (patch) | |
| tree | fa8dec2bf12e6f8979e7b938f861661e934665da /src/categories.h | |
| parent | 11522cf700e07a6c39bad45c346e62a73935c083 (diff) | |
Convert for loops, move nexusCats
Diffstat (limited to 'src/categories.h')
| -rw-r--r-- | src/categories.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/categories.h b/src/categories.h index a6ee2e24..15b9bbc1 100644 --- a/src/categories.h +++ b/src/categories.h @@ -92,7 +92,7 @@ public: Category(int sortValue, int id, const QString name, int parentID, std::vector<NexusCategory> nexusCats) : m_SortValue(sortValue), m_ID(id), m_Name(name), m_HasChildren(false), - m_ParentID(parentID), m_NexusCats(nexusCats) + m_ParentID(parentID), m_NexusCats(std::move(nexusCats)) {} friend bool operator<(const Category& LHS, const Category& RHS) @@ -132,7 +132,7 @@ public: **/ void saveCategories(); - void setNexusCategories(std::vector<CategoryFactory::NexusCategory>& nexusCats); + void setNexusCategories(const std::vector<CategoryFactory::NexusCategory>& nexusCats); void refreshNexusCategories(CategoriesDialog* dialog); |
