mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Fix compilation of lp_gen_wrappers.
This commit is contained in:
parent
367109341e
commit
615ceb278f
1 changed files with 2 additions and 2 deletions
|
|
@ -338,8 +338,8 @@ static void parseEnum(Project *proj, XmlNode node){
|
|||
list<XmlNode>::iterator it;
|
||||
int value = 0;
|
||||
for (it=enumValues.begin();it!=enumValues.end();++it){
|
||||
XmlNode initializer = (*it).getChild("initializer");
|
||||
if (initializer) value=atoi(initializer.getText().c_str());
|
||||
string initializer = (*it).getChild("initializer").getText();
|
||||
if (initializer!="") value=atoi(initializer.c_str());
|
||||
ConstField *cf=new ConstField(Type::getType("int"),(*it).getChild("name").getText(),value);
|
||||
cf->setHelp((*it).getChild("detaileddescription").getChild("para").getText());
|
||||
klass->addConstField(cf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue