Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: cpptoxml/main.cpp
- ===================================================================
- --- cpptoxml/main.cpp (revision 1107766)
- +++ cpptoxml/main.cpp (working copy)
- @@ -364,11 +364,11 @@
- // TODO fix lua binding generator
- if(false && children.isEmpty())
- {
- - ret = "<" + ret + " />\n";
- + ret = '<' + ret + " />\n";
- }
- else
- {
- - ret = "<" + ret + " >\n";
- + ret = '<' + ret + " >\n";
- ret += children;
- ret += "</";
- ret += XMLTag(i);
- @@ -515,7 +515,7 @@
- // TODO does not work with framework because there are no QtCore, QtGui, ... folders
- inclist << QString("%1/%2.framework/Headers").arg(frameworkDir).arg(lib);
- } else {
- - inclist << QDir::convertSeparators(qtdir + "/" + lib);
- + inclist << QDir::convertSeparators(qtdir + '/' + lib);
- }
- }
- Index: cpptoxml/parser/binder.cpp
- ===================================================================
- --- cpptoxml/parser/binder.cpp (revision 1107766)
- +++ cpptoxml/parser/binder.cpp (working copy)
- @@ -655,16 +655,16 @@
- if (! _M_current_template_parameters.isEmpty())
- {
- QString name = _M_current_class->name();
- - name += "<";
- + name += '<';
- for (int i = 0; i<_M_current_template_parameters.size(); ++i)
- {
- if (i != 0)
- - name += ",";
- + name += ',';
- name += _M_current_template_parameters.at(i)->name();
- }
- - name += ">";
- + name += '>';
- _M_current_class->setName(name);
- }
- @@ -731,7 +731,7 @@
- static QString strip_preprocessor_lines(const QString &name)
- {
- - QStringList lst = name.split("\n");
- + QStringList lst = name.split('\n');
- QString s;
- for (int i=0; i<lst.size(); ++i) {
- if (!lst.at(i).startsWith('#'))
- Index: cpptoxml/parser/rpp/pp-main.cpp
- ===================================================================
- --- cpptoxml/parser/rpp/pp-main.cpp (revision 1107766)
- +++ cpptoxml/parser/rpp/pp-main.cpp (working copy)
- @@ -208,7 +208,7 @@
- }
- else
- {
- - extra_args += " ";
- + extra_args += ' ';
- extra_args += arg;
- }
- }
- Index: cpptoxml/parser/declarator_compiler.cpp
- ===================================================================
- --- cpptoxml/parser/declarator_compiler.cpp (revision 1107766)
- +++ cpptoxml/parser/declarator_compiler.cpp (working copy)
- @@ -137,11 +137,11 @@
- p.defaultValueExpression = QString();
- QString source = QString::fromUtf8(&start.text[start.position], length).trimmed();
- - QStringList list = source.split("\n");
- + QStringList list = source.split('\n');
- for (int i=0; i<list.size(); ++i) {
- - if (!list.at(i).startsWith("#"))
- + if (!list.at(i).startsWith('#'))
- p.defaultValueExpression += list.at(i).trimmed();
- }
- Index: cpptoxml/parser/type_compiler.cpp
- ===================================================================
- --- cpptoxml/parser/type_compiler.cpp (revision 1107766)
- +++ cpptoxml/parser/type_compiler.cpp (working copy)
- @@ -88,7 +88,7 @@
- {
- std::size_t token = it->element;
- current_item += token_name(_M_token_stream->kind(token));
- - current_item += " ";
- + current_item += ' ';
- it = it->next;
- }
- while (it != end);
Advertisement
Add Comment
Please, Sign In to add comment