X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..1cb912e4f90473f78d2f0f10ab5c9b2c5bd36440:/projects/stargazer/plugins/other/smux/tables.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/other/smux/tables.cpp b/projects/stargazer/plugins/other/smux/tables.cpp index 21173b70..ead98f38 100644 --- a/projects/stargazer/plugins/other/smux/tables.cpp +++ b/projects/stargazer/plugins/other/smux/tables.cpp @@ -1,16 +1,26 @@ -#include -#include -#include -#include +#include "tables.h" #include "stg/user_property.h" #include "stg/tariffs.h" #include "stg/tariff_conf.h" #include "stg/users.h" -#include "tables.h" +#include +#include +#include +#include + +using STG::TariffUsersTable; -std::pair TD2Info(const STG::TariffData & td); +namespace +{ + +std::pair TD2Info(const STG::TariffData & td) +{ + return std::make_pair(td.tariffConf.name, 0); +} + +} void TariffUsersTable::UpdateSensors(Sensors & sensors) const { @@ -58,8 +68,3 @@ while (it != data.end()) ++it; } } - -std::pair TD2Info(const STG::TariffData & td) -{ -return std::make_pair(td.tariffConf.name, 0); -}