mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-25 07:08:11 +00:00
Fix parsing of enum values in the lp_gen_wrappers.
This commit is contained in:
parent
615ceb278f
commit
830d990771
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ static void parseEnum(Project *proj, XmlNode node){
|
|||
int value = 0;
|
||||
for (it=enumValues.begin();it!=enumValues.end();++it){
|
||||
string initializer = (*it).getChild("initializer").getText();
|
||||
if (initializer!="") value=atoi(initializer.c_str());
|
||||
if (initializer.length() > 1) value=atoi(initializer.substr(1).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