]> git.stg.codes - stg.git/blobdiff - stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp
Remove std::list from tariffs.
[stg.git] / stargazer / plugins / configuration / sgconfig / parser_tariffs.cpp
index dfe6b55212cac49b498222d7889a374718b9d425..ae22cf044d656fbe6c276371752323be10a9836f 100644 (file)
@@ -90,9 +90,9 @@ void GET_TARIFFS::CreateAnswer()
 {
     m_answer = "<Tariffs>";
 
-    std::list<TARIFF_DATA> dataList;
+    std::vector<TARIFF_DATA> dataList;
     m_tariffs.GetTariffsData(&dataList);
-    std::list<TARIFF_DATA>::const_iterator it = dataList.begin();
+    auto it = dataList.begin();
     for (; it != dataList.end(); ++it)
         {
         m_answer += "<tariff name=\"" + it->tariffConf.name + "\">";