X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/27cbf9efdb75590ada1c734e68bd74a78730ad20..ce9081f39b535afe4d34efc131738fddd20937c0:/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 ad08c40f..c3e3ef54 100644 --- a/projects/stargazer/plugins/other/smux/tables.cpp +++ b/projects/stargazer/plugins/other/smux/tables.cpp @@ -31,8 +31,7 @@ while (!users.SearchNext(handle, &user)) if (user->GetDeleted()) continue; std::string tariffName(user->GetProperty().tariffName.ConstData()); - std::map::iterator it; - it = data.lower_bound(tariffName); + std::map::iterator it(data.lower_bound(tariffName)); if (it == data.end() || it->first != tariffName) { @@ -52,8 +51,8 @@ OID prefixOid(prefix); std::map::const_iterator it(data.begin()); while (it != data.end()) { - sensors[prefixOid.copyWithSuffix(2, idx)] = new ConstSensor(it->first); - sensors[prefixOid.copyWithSuffix(3, idx)] = new ConstSensor(it->second); + sensors[prefixOid.copyWithSuffix(2, static_cast(idx))] = new ConstSensor(it->first); + sensors[prefixOid.copyWithSuffix(3, static_cast(idx))] = new ConstSensor(it->second); ++idx; ++it; }