From c30b5183aeea55290ec9072cac958cd6e90fdf30 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Sun, 24 Sep 2023 05:46:09 -0500 Subject: Convert for loops, move nexusCats --- src/categories.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/categories.h') 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 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& nexusCats); + void setNexusCategories(const std::vector& nexusCats); void refreshNexusCategories(CategoriesDialog* dialog); -- cgit v1.3.1