git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket 37. The CHANGE_POLICY GetChangePolicy() function definition
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
rpcconfig
/
tariff_helper.cpp
diff --git
a/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp
b/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp
index 85abf8205a5e59822db40850c3b37d4de905be45..26b4e993b719067fae180f47b9c1d1792b1da204 100644
(file)
--- a/
projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp
+++ b/
projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp
@@
-63,7
+63,7
@@
if ((it = structVal.find("passivecost")) != structVal.end())
if ((it = structVal.find("traffType")) != structVal.end())
{
if ((it = structVal.find("traffType")) != structVal.end())
{
- data.tariffConf.traffType =
xmlrpc_c::value_int(it->second
);
+ data.tariffConf.traffType =
static_cast<TARIFF::TRAFF_TYPE>(xmlrpc_c::value_int(it->second).cvalue()
);
}
if ((it = structVal.find("period")) != structVal.end())
}
if ((it = structVal.find("period")) != structVal.end())