X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..e6c0bd53164bd30bbe038c80a370707847fc266c:/projects/stargazer/plugins/configuration/sgconfig/parser_services.cpp?ds=sidebyside 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);