C++: Fix the copy constructor of UnitPriceSpecification
authorjani <jani@asema.com>
Tue, 25 Jun 2019 12:15:17 +0000 (15:15 +0300)
committerjani <jani@asema.com>
Tue, 25 Jun 2019 12:15:17 +0000 (15:15 +0300)
Common/C++/SmartAPI/smartapi/model/UnitPriceSpecification.cpp

index 6a5663c58f79e85885609fd4e1c6ee991188be64..1f0e463953f8121530e1601a7e382e2d832251f6 100755 (executable)
@@ -15,6 +15,7 @@ UnitPriceSpecification::UnitPriceSpecification(float price, QString unit, QStrin
 UnitPriceSpecification::UnitPriceSpecification(UnitPriceSpecification* o) :
        PriceSpecification(o)
 {
+       setType(RESOURCE__UNITPRICESPECIFICATION);
 }
 
 UnitPriceSpecification::~UnitPriceSpecification()