git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix TRAFFCOUNTER in plugins
[stg.git]
/
projects
/
stargazer
/
plugins
/
configuration
/
rpcconfig
/
tariffs_methods.cpp
diff --git
a/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp
b/projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp
index 23916ae70868e334e5cefddc52e2c9ba5db79270..10985cced4f65c70498895a7ebd584965dca6253 100644
(file)
--- a/
projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp
+++ b/
projects/stargazer/plugins/configuration/rpcconfig/tariffs_methods.cpp
@@
-1,10
+1,10
@@
#include "rpcconfig.h"
#include "tariffs_methods.h"
#include "tariff_helper.h"
#include "rpcconfig.h"
#include "tariffs_methods.h"
#include "tariff_helper.h"
-#include "
../../../
tariffs.h"
-#include "
../../../
users.h"
-#include "
../../../
admins.h"
-#include "
../../../
admin.h"
+#include "tariffs.h"
+#include "users.h"
+#include "admins.h"
+#include "admin.h"
void METHOD_TARIFF_GET::execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr)
void METHOD_TARIFF_GET::execute(xmlrpc_c::paramList const & paramList,
xmlrpc_c::value * const retvalPtr)
@@
-32,9
+32,7
@@
if (!tariff)
return;
}
return;
}
-TARIFF_DATA td;
-
-tariff->GetTariffData(&td);
+TARIFF_DATA td(tariff->GetTariffData());
TARIFF_HELPER helper(td);
TARIFF_HELPER helper(td);
@@
-57,7
+55,7
@@
if (config->GetAdminInfo(cookie, &adminInfo))
return;
}
return;
}
-ADMIN admin;
+ADMIN
*
admin;
if (admins->FindAdmin(adminInfo.admin, &admin))
{
if (admins->FindAdmin(adminInfo.admin, &admin))
{
@@
-73,9
+71,7
@@
if (!tariff)
return;
}
return;
}
-TARIFF_DATA td;
-
-tariff->GetTariffData(&td);
+TARIFF_DATA td(tariff->GetTariffData());
TARIFF_HELPER helper(td);
TARIFF_HELPER helper(td);
@@
-140,7
+136,7
@@
if (config->GetAdminInfo(cookie, &adminInfo))
return;
}
return;
}
-ADMIN admin;
+ADMIN
*
admin;
if (admins->FindAdmin(adminInfo.admin, &admin))
{
if (admins->FindAdmin(adminInfo.admin, &admin))
{
@@
-172,7
+168,7
@@
if (config->GetAdminInfo(cookie, &adminInfo))
return;
}
return;
}
-ADMIN admin;
+ADMIN
*
admin;
if (admins->FindAdmin(adminInfo.admin, &admin))
{
if (admins->FindAdmin(adminInfo.admin, &admin))
{