X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..1cb912e4f90473f78d2f0f10ab5c9b2c5bd36440:/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp?ds=inline diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp index 118d819e..2ccddd38 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp @@ -178,20 +178,20 @@ int CHG_SERVICE::Start(void *, const char * el, const char ** attr) void CHG_SERVICE::CreateAnswer() { - if (m_service.name.empty()) + if (!m_service.name) { m_answer = "<" + m_tag + " result=\"Empty service name.\"/>"; return; } - if (!m_services.Exists(m_service.name.const_data())) + if (!m_services.Exists(m_service.name.value())) { - m_answer = "<" + m_tag + " result = \"Service '" + m_service.name.const_data() + "' does not exist.\"/>"; + m_answer = "<" + m_tag + " result = \"Service '" + m_service.name.value() + "' does not exist.\"/>"; return; } ServiceConf orig; - m_services.Find(m_service.name.const_data(), &orig); + m_services.Find(m_service.name.value(), &orig); ServiceConfOpt conf(orig); conf.splice(m_service);