From: Elena Mamontova Date: Mon, 8 Aug 2016 12:50:20 +0000 (+0300) Subject: Ticket 37. Single quotes added in the message for user login, tariff name, X-Git-Tag: 2.409~119 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/fb3a3aae0c569547b43b5df6fa9b3df5ea3e033f?ds=inline Ticket 37. Single quotes added in the message for user login, tariff name, change policy name in TariffChangeIsAllowed() function. --- diff --git a/projects/stargazer/tariff_impl.cpp b/projects/stargazer/tariff_impl.cpp index 271a1da0..7a024d0f 100644 --- a/projects/stargazer/tariff_impl.cpp +++ b/projects/stargazer/tariff_impl.cpp @@ -155,14 +155,14 @@ switch (GetChangePolicy()) if (to.GetFee() < GetFee()) return ""; else - return "Current tariff " + GetName() + " is more cheap than new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + "."; + return "Current tariff '" + GetName() + "' is more cheap than new tariff '" + to.GetName() + "'. The policy is '" + TARIFF::ChangePolicyToString(GetChangePolicy()) + "'."; case TARIFF::TO_EXPENSIVE: if (to.GetFee() > GetFee()) return ""; else - return "Current tariff " + GetName() + " is more expensive than new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + "."; + return "Current tariff '" + GetName() + "' is more expensive than new tariff '" + to.GetName() + "'. The policy is '" + TARIFF::ChangePolicyToString(GetChangePolicy()) + "'."; case TARIFF::DENY: - return "Current tariff " + GetName() + ", new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + "."; + return "Current tariff '" + GetName() + "', new tariff '" + to.GetName() + "'. The policy is '" + TARIFF::ChangePolicyToString(GetChangePolicy()) + "'."; } } //-----------------------------------------------------------------------------