From: Elena Mamontova Date: Wed, 27 Jul 2016 06:21:05 +0000 (+0300) Subject: Ticket 37. The const TARIFF * tariff and const TARIFF * newTariff X-Git-Tag: 2.409~139 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/c949afc4f9940c71c63ce6dda771eb32e6fd8c65 Ticket 37. The const TARIFF * tariff and const TARIFF * newTariff pointers added. --- diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp index 2e9d7087..dbd82b0b 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -594,6 +594,8 @@ int CHG_USER::ApplyChanges() if (!m_ucr.tariffName.empty()) { + const TARIFF * tariff = u->GetTariff(); + const TARIFF * newTariff = m_tariffs.FindByName(m_ucr.tariffName.const_data()); if (m_tariffs.FindByName(m_ucr.tariffName.const_data())) { if (!u->GetProperty().tariffName.Set(m_ucr.tariffName.const_data(), &m_currAdmin, m_login, &m_store))