From: Elena Mamontova Date: Fri, 19 Aug 2016 10:54:38 +0000 (+0300) Subject: Ticket 37. TARIFF_DATA_RES & operator=(const TARIFF_DATA & td) added in X-Git-Tag: 2.409~115 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/ba96013ed9ad6732284db1487c8a615343cc8c64?hp=fb083109b84a9f198b4949892b0b816801e1d196 Ticket 37. TARIFF_DATA_RES & operator=(const TARIFF_DATA & td) added in the sstruct TARIFF_DATA_RES. --- diff --git a/include/stg/tariff_conf.h b/include/stg/tariff_conf.h index d8684bd9..9de30830 100644 --- a/include/stg/tariff_conf.h +++ b/include/stg/tariff_conf.h @@ -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;