]> git.stg.codes - stg.git/commitdiff
Ticket 37. The const TARIFF * tariff and const TARIFF * newTariff
authorElena Mamontova <helenh463@gmail.com>
Wed, 27 Jul 2016 06:21:05 +0000 (09:21 +0300)
committerElena Mamontova <helenh463@gmail.com>
Wed, 27 Jul 2016 06:21:05 +0000 (09:21 +0300)
pointers added.

projects/stargazer/plugins/configuration/sgconfig/parser_users.cpp

index 2e9d70872a82e3a7ac1ff92236c36c306060d582..dbd82b0b6f5dbbc5ad47de7106cbc6eaceb8fea3 100644 (file)
@@ -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))