]> git.stg.codes - stg.git/commitdiff
Ticket 37. if (message == "") replaced by if (message.empty()) in the
authorElena Mamontova <helenh463@gmail.com>
Mon, 8 Aug 2016 12:14:06 +0000 (15:14 +0300)
committerElena Mamontova <helenh463@gmail.com>
Mon, 8 Aug 2016 12:14:06 +0000 (15:14 +0300)
ProcessNewMonth() function.

projects/stargazer/user_impl.cpp

index 8c38d909ee0214e9073d3ba1017b34966cf6e7bf..f8335525a00acb3020df41ab84649a8e5e4b9ff7 100644 (file)
@@ -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);
             }