]> git.stg.codes - stg.git/commitdiff
Ticket 37. TARIFF_DATA_RES & operator=(const TARIFF_DATA & td) added in
authorElena Mamontova <helenh463@gmail.com>
Fri, 19 Aug 2016 10:54:38 +0000 (13:54 +0300)
committerElena Mamontova <helenh463@gmail.com>
Fri, 19 Aug 2016 10:54:38 +0000 (13:54 +0300)
the sstruct TARIFF_DATA_RES.

include/stg/tariff_conf.h

index d8684bd9de352e351ea18fb0b6028e74616ee6ce..9de3083042cd5f55ddc839c6174590d655c4d066 100644 (file)
@@ -255,6 +255,12 @@ struct TARIFF_DATA_RES
           dirPrice(DIR_NUM)
         {}
 
+    TARIFF_DATA_RES & operator=(const TARIFF_DATA & td)
+        {
+        tariffConf = td.tariffConf;
+        return *this;
+        }
+
     TARIFF_DATA GetData() const
         {
         TARIFF_DATA td;