summaryrefslogtreecommitdiff
path: root/catalog.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-06-15 18:08:35 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-06-15 18:08:35 +0800
commitd0a8570fd5c46ad2cab21af0b8f5a299bcbc1792 (patch)
treea279d6903340ce0d3c7ab165a2fbd9ae7d73b5d8 /catalog.cxx
parentca179a4b0ed27a240bd3144a01e3c7ec13f75389 (diff)
Product is back constructed using pointers
so that Item can easily subclass from Product later.
Diffstat (limited to 'catalog.cxx')
-rw-r--r--catalog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog.cxx b/catalog.cxx
index aa1dd5f..3a9e901 100644
--- a/catalog.cxx
+++ b/catalog.cxx
@@ -7,7 +7,7 @@ namespace QInterchange {
QAbstractListModel{parent}
{
for (size_t i = 0; i < catalog.length; i++)
- addProduct(Product{catalog.products[i]});
+ addProduct(Product{&catalog.products[i]});
}
int Catalog::rowCount(QModelIndex const& parent) const