mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
jsonapi-generator handle multiple services per file
Before this commit jsonapi-generator was able to parse only one service instance pointer per file, so only the first one got exposed now it handle also files where more then one service instance pointer is declared
This commit is contained in:
parent
c294971633
commit
a9b1a15b43
1 changed files with 2 additions and 2 deletions
|
@ -78,12 +78,12 @@ int main(int argc, char *argv[])
|
|||
QString headerFileName(hfi.fileName());
|
||||
headerFileName.replace(QString("_8h.xml"), QString(".h"));
|
||||
|
||||
QDomNodeList sectiondefs = hDoc.elementsByTagName("sectiondef");
|
||||
QDomNodeList sectiondefs = hDoc.elementsByTagName("memberdef");
|
||||
for(int j = 0; j < sectiondefs.size(); ++j)
|
||||
{
|
||||
QDomElement sectDef = sectiondefs.item(j).toElement();
|
||||
|
||||
if( sectDef.attributes().namedItem("kind").nodeValue() != "var"
|
||||
if( sectDef.attributes().namedItem("kind").nodeValue() != "variable"
|
||||
|| sectDef.elementsByTagName("jsonapi").isEmpty() )
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue