X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/489de0deb4c1182cfbce41809b17892fcf9430fd..dbd170cc6a6787325b3bd00391f2727041ea4ad9:/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp index ef3a470e..8f15c491 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -599,7 +599,7 @@ int CHG_USER::ApplyChanges() { const TARIFF * tariff = u->GetTariff(); std::string message = tariff->TariffChangeIsAllowed(*newTariff); - if (message == "") + if (message.empty()) { if (!u->GetProperty().tariffName.Set(m_ucr.tariffName.const_data(), &m_currAdmin, m_login, &m_store)) return -1;