From: Elena Mamontova Date: Mon, 8 Aug 2016 12:14:06 +0000 (+0300) Subject: Ticket 37. if (message == "") replaced by if (message.empty()) in the X-Git-Tag: 2.409~123 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/6a910ebc93a80b2f33399dd956f3a7aae9fd35ec?ds=sidebyside Ticket 37. if (message == "") replaced by if (message.empty()) in the ProcessNewMonth() function. --- diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index 8c38d909..f8335525 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -1185,7 +1185,7 @@ if (nextTariff.ConstData() != "") else { std::string message = tariff->TariffChangeIsAllowed(*nt); - if (message == "") + if (message.empty()) { property.tariffName.Set(nextTariff, sysAdmin, login, store); }