From c949afc4f9940c71c63ce6dda771eb32e6fd8c65 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Wed, 27 Jul 2016 09:21:05 +0300 Subject: [PATCH] Ticket 37. The const TARIFF * tariff and const TARIFF * newTariff pointers added. --- .../stargazer/plugins/configuration/sgconfig/parser_users.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.44.2