eitd/SIevents.cpp: change SIcomponents and SIparentalRatings from set to vector -

no need to sort them, this decrease SIevent size
This commit is contained in:
[CST] Focus
2012-05-29 16:32:07 +04:00
parent ace0f4828b
commit 01f50bba06
3 changed files with 19 additions and 8 deletions

View File

@@ -369,12 +369,17 @@ void *insertEventsfromFile(void * data)
c.componentType = xmlGetNumericAttribute(node, "type", 16);
c.componentTag = xmlGetNumericAttribute(node, "tag", 16);
c.component = std::string(xmlGetAttribute(node, "text"));
e.components.insert(c);
//e.components.insert(c);
e.components.push_back(c);
node = node->xmlNextNode;
}
while (xmlGetNextOccurence(node, "parental_rating") != NULL) {
#if 0
e.ratings.insert(SIparentalRating(std::string(ZapitTools::UTF8_to_Latin1(xmlGetAttribute(node, "country"))),
(unsigned char) xmlGetNumericAttribute(node, "rating", 10)));
#endif
e.ratings.push_back(SIparentalRating(std::string(ZapitTools::UTF8_to_Latin1(xmlGetAttribute(node, "country"))),
(unsigned char) xmlGetNumericAttribute(node, "rating", 10)));
node = node->xmlNextNode;
}
while (xmlGetNextOccurence(node, "linkage") != NULL) {