]> git.stg.codes - stg.git/commitdiff
Ticket 37. The changePolicy(TARIFF::ALLOW) added in the struct
authorElena Mamontova <helenh463@gmail.com>
Tue, 24 May 2016 08:38:54 +0000 (11:38 +0300)
committerElena Mamontova <helenh463@gmail.com>
Tue, 24 May 2016 08:38:54 +0000 (11:38 +0300)
TARIFF_CONF constructors.

include/stg/tariff_conf.h

index ef8f15c263100d8f338b8aacbfc5588802124008..7790d47bf470ea03f6a0d06b580feca650147ec1 100644 (file)
@@ -156,7 +156,8 @@ struct TARIFF_CONF
           traffType(TARIFF::TRAFF_UP_DOWN),
           passiveCost(0),
           name(),
           traffType(TARIFF::TRAFF_UP_DOWN),
           passiveCost(0),
           name(),
-          period(TARIFF::MONTH)
+          period(TARIFF::MONTH),
+          changePolicy(TARIFF::ALLOW)
         {}
 
     TARIFF_CONF(const std::string & n)
         {}
 
     TARIFF_CONF(const std::string & n)
@@ -165,7 +166,8 @@ struct TARIFF_CONF
           traffType(TARIFF::TRAFF_UP_DOWN),
           passiveCost(0),
           name(n),
           traffType(TARIFF::TRAFF_UP_DOWN),
           passiveCost(0),
           name(n),
-          period(TARIFF::MONTH)
+          period(TARIFF::MONTH),
+          changePolicy(TARIFF::ALLOW)
         {}
 };
 //-----------------------------------------------------------------------------
         {}
 };
 //-----------------------------------------------------------------------------