From: Elena Mamontova Date: Mon, 8 Aug 2016 10:50:50 +0000 (+0300) Subject: Ticket 37. if (message == "") replaced by if (message.empty()) in the X-Git-Tag: 2.409~125 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/366bb4653b313204d38c3a66b0ed7b18d89cca1b Ticket 37. if (message == "") replaced by if (message.empty()) in the ApplyChangews() function. --- 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;