From fb3a3aae0c569547b43b5df6fa9b3df5ea3e033f Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Mon, 8 Aug 2016 15:50:20 +0300 Subject: [PATCH] Ticket 37. Single quotes added in the message for user login, tariff name, change policy name in TariffChangeIsAllowed() function. --- projects/stargazer/tariff_impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()) + "'."; } } //----------------------------------------------------------------------------- -- 2.43.2