Guest User

Untitled

a guest
Mar 26th, 2010
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. Index: cpptoxml/main.cpp
  2. ===================================================================
  3. --- cpptoxml/main.cpp (revision 1107607)
  4. +++ cpptoxml/main.cpp (working copy)
  5. @@ -251,7 +251,7 @@
  6.  
  7. ret += visit(m->type(), m->scope());
  8. QString tp = templateParametersToString(m->templateParameters());
  9. - if (tp!=QString()) ret += ATTR_STR("member_template_parameters", tp);
  10. + if (tp.isEmpty()) ret += ATTR_STR("member_template_parameters", tp);
  11. }
  12. if (FunctionModelItem f = model_dynamic_cast<FunctionModelItem>(i)) {
  13. if (f->isVirtual()) ret += ATTR_TRUE("virtual");
  14. @@ -294,7 +294,7 @@
  15. break;
  16. }
  17. QString tp = templateParametersToString(c->templateParameters());
  18. - if (tp!=QString()) ret += ATTR_STR("member_template_parameters", tp);
  19. + if (tp.isEmpty()) ret += ATTR_STR("member_template_parameters", tp);
  20. // TODO also list propertyDeclarations (maybe in content?)
  21. }
  22. if (EnumModelItem e = model_dynamic_cast<EnumModelItem>(i)) {
  23. @@ -351,7 +351,7 @@
  24. if (EnumModelItem e = model_dynamic_cast<EnumModelItem>(i)) {
  25. QString last = QChar('0');
  26. foreach(EnumeratorModelItem n, model_dynamic_cast<EnumModelItem>(i)->enumerators()) {
  27. - if (n->value() == QString())
  28. + if ((n->value()).isEmpty())
  29. n->setValue(last.append("+1")); //FIXME: Is there a reason for not putting the value itself? :S
  30. children += visit(model_static_cast<CodeModelItem>(n));
  31. last = n->value();
Advertisement
Add Comment
Please, Sign In to add comment