Skip to content
Snippets Groups Projects
Commit 021a4f8f authored by Tiago Rodrigo Kepe's avatar Tiago Rodrigo Kepe
Browse files

categorize.cpp: Fixed conversion

Fixed conversion from xmlChar to string.
parent f4c10f7e
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ void categorizeXml(const char *xmlFile, map<string, set<string> >& M) { ...@@ -20,7 +20,7 @@ void categorizeXml(const char *xmlFile, map<string, set<string> >& M) {
if ( xmlTextReaderHasAttributes(reader) == 1 ) { if ( xmlTextReaderHasAttributes(reader) == 1 ) {
node.category = xmlTextReaderGetAttribute(reader, xmlCharStrdup("category")); node.category = xmlTextReaderGetAttribute(reader, xmlCharStrdup("category"));
node.media = xmlTextReaderGetAttribute(reader, xmlCharStrdup("media")); node.media = xmlTextReaderGetAttribute(reader, xmlCharStrdup("media"));
category = (char *)node.category; category = QString().fromUtf8((char *)node.category).toStdString();
media = QString().fromUtf8((char *)node.media).toStdString(); media = QString().fromUtf8((char *)node.media).toStdString();
M[media].insert(category); M[media].insert(category);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment