X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/5faa80c629ffd05cf80dd29e8a1834057805829c..afcbfd1a09e22ff4839ba5db42047c96f355506c:/include/stg/service_conf.h diff --git a/include/stg/service_conf.h b/include/stg/service_conf.h index 84f052a5..b6c24490 100644 --- a/include/stg/service_conf.h +++ b/include/stg/service_conf.h @@ -31,7 +31,7 @@ struct SERVICE_CONF SERVICE_CONF() : name(), comment(), cost(0), payDay(0) {} -SERVICE_CONF(const std::string & n) +explicit SERVICE_CONF(const std::string & n) : name(n), comment(), cost(0), payDay(0) {} SERVICE_CONF(const std::string & n, double c) @@ -58,7 +58,7 @@ SERVICE_CONF_RES() cost(), payDay() {} -SERVICE_CONF_RES(const SERVICE_CONF & rhs) +explicit SERVICE_CONF_RES(const SERVICE_CONF & rhs) : name(rhs.name), comment(rhs.comment), cost(rhs.cost), payDay(rhs.payDay) {}