Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: cpptoxml/main.cpp
- ===================================================================
- --- cpptoxml/main.cpp (revision 1107607)
- +++ cpptoxml/main.cpp (working copy)
- @@ -251,7 +251,7 @@
- ret += visit(m->type(), m->scope());
- QString tp = templateParametersToString(m->templateParameters());
- - if (tp!=QString()) ret += ATTR_STR("member_template_parameters", tp);
- + if (tp.isEmpty()) ret += ATTR_STR("member_template_parameters", tp);
- }
- if (FunctionModelItem f = model_dynamic_cast<FunctionModelItem>(i)) {
- if (f->isVirtual()) ret += ATTR_TRUE("virtual");
- @@ -294,7 +294,7 @@
- break;
- }
- QString tp = templateParametersToString(c->templateParameters());
- - if (tp!=QString()) ret += ATTR_STR("member_template_parameters", tp);
- + if (tp.isEmpty()) ret += ATTR_STR("member_template_parameters", tp);
- // TODO also list propertyDeclarations (maybe in content?)
- }
- if (EnumModelItem e = model_dynamic_cast<EnumModelItem>(i)) {
- @@ -351,7 +351,7 @@
- if (EnumModelItem e = model_dynamic_cast<EnumModelItem>(i)) {
- QString last = QChar('0');
- foreach(EnumeratorModelItem n, model_dynamic_cast<EnumModelItem>(i)->enumerators()) {
- - if (n->value() == QString())
- + if ((n->value()).isEmpty())
- n->setValue(last.append("+1")); //FIXME: Is there a reason for not putting the value itself? :S
- children += visit(model_static_cast<CodeModelItem>(n));
- last = n->value();
Advertisement
Add Comment
Please, Sign In to add comment