Guest User

Untitled

a guest
Mar 26th, 2010
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. Index: cpptoxml/main.cpp
  2. ===================================================================
  3. --- cpptoxml/main.cpp (revision 1107766)
  4. +++ cpptoxml/main.cpp (working copy)
  5. @@ -364,11 +364,11 @@
  6. // TODO fix lua binding generator
  7. if(false && children.isEmpty())
  8. {
  9. - ret = "<" + ret + " />\n";
  10. + ret = '<' + ret + " />\n";
  11. }
  12. else
  13. {
  14. - ret = "<" + ret + " >\n";
  15. + ret = '<' + ret + " >\n";
  16. ret += children;
  17. ret += "</";
  18. ret += XMLTag(i);
  19. @@ -515,7 +515,7 @@
  20. // TODO does not work with framework because there are no QtCore, QtGui, ... folders
  21. inclist << QString("%1/%2.framework/Headers").arg(frameworkDir).arg(lib);
  22. } else {
  23. - inclist << QDir::convertSeparators(qtdir + "/" + lib);
  24. + inclist << QDir::convertSeparators(qtdir + '/' + lib);
  25. }
  26. }
  27.  
  28. Index: cpptoxml/parser/binder.cpp
  29. ===================================================================
  30. --- cpptoxml/parser/binder.cpp (revision 1107766)
  31. +++ cpptoxml/parser/binder.cpp (working copy)
  32. @@ -655,16 +655,16 @@
  33. if (! _M_current_template_parameters.isEmpty())
  34. {
  35. QString name = _M_current_class->name();
  36. - name += "<";
  37. + name += '<';
  38. for (int i = 0; i<_M_current_template_parameters.size(); ++i)
  39. {
  40. if (i != 0)
  41. - name += ",";
  42. + name += ',';
  43.  
  44. name += _M_current_template_parameters.at(i)->name();
  45. }
  46.  
  47. - name += ">";
  48. + name += '>';
  49. _M_current_class->setName(name);
  50. }
  51.  
  52. @@ -731,7 +731,7 @@
  53.  
  54. static QString strip_preprocessor_lines(const QString &name)
  55. {
  56. - QStringList lst = name.split("\n");
  57. + QStringList lst = name.split('\n');
  58. QString s;
  59. for (int i=0; i<lst.size(); ++i) {
  60. if (!lst.at(i).startsWith('#'))
  61. Index: cpptoxml/parser/rpp/pp-main.cpp
  62. ===================================================================
  63. --- cpptoxml/parser/rpp/pp-main.cpp (revision 1107766)
  64. +++ cpptoxml/parser/rpp/pp-main.cpp (working copy)
  65. @@ -208,7 +208,7 @@
  66. }
  67. else
  68. {
  69. - extra_args += " ";
  70. + extra_args += ' ';
  71. extra_args += arg;
  72. }
  73. }
  74. Index: cpptoxml/parser/declarator_compiler.cpp
  75. ===================================================================
  76. --- cpptoxml/parser/declarator_compiler.cpp (revision 1107766)
  77. +++ cpptoxml/parser/declarator_compiler.cpp (working copy)
  78. @@ -137,11 +137,11 @@
  79.  
  80. p.defaultValueExpression = QString();
  81. QString source = QString::fromUtf8(&start.text[start.position], length).trimmed();
  82. - QStringList list = source.split("\n");
  83. + QStringList list = source.split('\n');
  84.  
  85.  
  86. for (int i=0; i<list.size(); ++i) {
  87. - if (!list.at(i).startsWith("#"))
  88. + if (!list.at(i).startsWith('#'))
  89. p.defaultValueExpression += list.at(i).trimmed();
  90. }
  91.  
  92. Index: cpptoxml/parser/type_compiler.cpp
  93. ===================================================================
  94. --- cpptoxml/parser/type_compiler.cpp (revision 1107766)
  95. +++ cpptoxml/parser/type_compiler.cpp (working copy)
  96. @@ -88,7 +88,7 @@
  97. {
  98. std::size_t token = it->element;
  99. current_item += token_name(_M_token_stream->kind(token));
  100. - current_item += " ";
  101. + current_item += ' ';
  102. it = it->next;
  103. }
  104. while (it != end);
Advertisement
Add Comment
Please, Sign In to add comment