From d0a8570fd5c46ad2cab21af0b8f5a299bcbc1792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 15 Jun 2023 18:08:35 +0800 Subject: Product is back constructed using pointers so that Item can easily subclass from Product later. --- interchange/ord.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'interchange/ord.hxx') diff --git a/interchange/ord.hxx b/interchange/ord.hxx index 7728085..34ff202 100644 --- a/interchange/ord.hxx +++ b/interchange/ord.hxx @@ -15,7 +15,7 @@ namespace QInterchange { NameRole }; Item(interchange_ord_item item) : - product{item.product}, + product{&item.product}, quantity{item.quantity}, name{item.name} {} Product product; -- cgit v1.2.3