From: Maxim Mamontov Date: Sat, 13 Aug 2011 16:11:21 +0000 (+0300) Subject: Default constructor added for SERVICE_CONF X-Git-Tag: 2.408-alpha~28 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/1b2fc630ee7edf4f8763bbf0e976789d26ff9372?ds=sidebyside Default constructor added for SERVICE_CONF --- diff --git a/include/stg/service_conf.h b/include/stg/service_conf.h index ea3495b3..5f015d0b 100644 --- a/include/stg/service_conf.h +++ b/include/stg/service_conf.h @@ -5,6 +5,9 @@ struct SERVICE_CONF { +SERVICE_CONF() + : name(), comment(), cost(0), payDay(0) +{} SERVICE_CONF(const std::string & n) : name(n), comment(), cost(0), payDay(0) {} @@ -25,5 +28,11 @@ double cost; unsigned payDay; }; +inline +bool operator==(const SERVICE_CONF & a, const SERVICE_CONF & b) +{ +return a.name == b.name; +} + #endif //SERVICE_CONF_H