summaryrefslogtreecommitdiff
path: root/ord.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ord.cxx')
-rw-r--r--ord.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ord.cxx b/ord.cxx
index f1cfcac..9d27432 100644
--- a/ord.cxx
+++ b/ord.cxx
@@ -15,12 +15,12 @@ namespace QInterchange {
m_totalCost{.0}
{
ord = this;
- if (order) return;
+ if (!order) return;
for (size_t i = 0; i < order->nitems; i++)
addItem(Item{order->items[i]});
m_subtotal = order->subtotal;
m_totalCost = order->total_cost;
- this->m_data = order;
+ m_data = order;
}
Ord::~Ord()