X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/35c60a5b8d010b881af44c14c8438473dab55335..471a8ddb278cb5621e36a6c45e450d40580e50fd:/include/stg/tariff_conf.h?ds=sidebyside diff --git a/include/stg/tariff_conf.h b/include/stg/tariff_conf.h index 79ade2eb..f705d0a0 100644 --- a/include/stg/tariff_conf.h +++ b/include/stg/tariff_conf.h @@ -162,7 +162,7 @@ struct TARIFF_CONF changePolicyTimeout(0) {} - TARIFF_CONF(const std::string & n) + explicit TARIFF_CONF(const std::string & n) : fee(0), free(0), traffType(TARIFF::TRAFF_UP_DOWN), @@ -234,22 +234,10 @@ struct TARIFF_DATA dirPrice(DIR_NUM) {} - TARIFF_DATA(const std::string & name) + explicit TARIFF_DATA(const std::string & name) : tariffConf(name), dirPrice(DIR_NUM) {} - - TARIFF_DATA(const TARIFF_DATA & td) - : tariffConf(td.tariffConf), - dirPrice(td.dirPrice) - {} - - TARIFF_DATA & operator=(const TARIFF_DATA & td) - { - tariffConf = td.tariffConf; - dirPrice = td.dirPrice; - return *this; - } }; //----------------------------------------------------------------------------- struct TARIFF_DATA_RES