From 366bb4653b313204d38c3a66b0ed7b18d89cca1b Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Mon, 8 Aug 2016 13:50:50 +0300 Subject: [PATCH] Ticket 37. if (message == "") replaced by if (message.empty()) in the ApplyChangews() function. --- .../stargazer/plugins/configuration/sgconfig/parser_users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.44.2