From b11317a64339f5a4bcffc8234ecaf15c7fb416f2 Mon Sep 17 00:00:00 2001 From: Axel Waggershauser Date: Fri, 15 Mar 2013 00:42:15 +0100 Subject: Whitespace cleanup: remove trailing whitespace Remove all trailing whitespace from the following list of files: *.cpp *.h *.conf *.qdoc *.pro *.pri *.mm *.rc *.pl *.qps *.xpm *.txt *README excluding 3rdparty, test-data and auto generated code. Note A): the only non 3rdparty c++-files that still have trailing whitespace after this change are: * src/corelib/codecs/cp949codetbl_p.h * src/corelib/codecs/qjpunicode.cpp * src/corelib/codecs/qbig5codec.cpp * src/corelib/xml/qxmlstream_p.h * src/tools/qdoc/qmlparser/qqmljsgrammar.cpp * src/tools/uic/ui4.cpp * tests/auto/other/qtokenautomaton/tokenizers/* * tests/benchmarks/corelib/tools/qstring/data.cpp * util/lexgen/tokenizer.cpp Note B): in about 30 files some overlapping 'leading tab' and 'TAB character in non-leading whitespace' issues have been fixed to make the sanity bot happy. Plus some general ws-fixes here and there as asked for during review. Change-Id: Ia713113c34d82442d6ce4d93d8b1cf545075d11d Reviewed-by: Oswald Buddenhagen --- src/dbus/qdbusmetaobject.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/dbus/qdbusmetaobject.cpp') diff --git a/src/dbus/qdbusmetaobject.cpp b/src/dbus/qdbusmetaobject.cpp index f3bd7c28ba..799c66f6f9 100644 --- a/src/dbus/qdbusmetaobject.cpp +++ b/src/dbus/qdbusmetaobject.cpp @@ -77,7 +77,7 @@ private: QVarLengthArray outputTypes; int flags; }; - + struct Property { QByteArray typeName; QByteArray signature; @@ -92,14 +92,14 @@ private: QMap signals_; QMap methods; QMap properties; - + const QDBusIntrospection::Interface *data; QString interface; Type findType(const QByteArray &signature, const QDBusIntrospection::Annotations &annotations, const char *direction = "Out", int id = -1); - + void parseMethods(); void parseSignals(); void parseProperties(); @@ -258,7 +258,7 @@ void QDBusMetaObjectGenerator::parseMethods() mm.inputTypes.append(type.id); mm.parameterNames.append(arg.name.toLatin1()); - + prototype.append(type.name); prototype.append(','); } @@ -331,7 +331,7 @@ void QDBusMetaObjectGenerator::parseSignals() mm.inputTypes.append(type.id); mm.parameterNames.append(arg.name.toLatin1()); - + prototype.append(type.name); prototype.append(','); } @@ -361,7 +361,7 @@ void QDBusMetaObjectGenerator::parseProperties() Type type = findType(p.type.toLatin1(), p.annotations); if (type.id == QVariant::Invalid) continue; - + QByteArray name = p.name.toLatin1(); mp.signature = p.type.toLatin1(); mp.type = type.id; @@ -564,7 +564,7 @@ void QDBusMetaObjectGenerator::writeWithoutXml(const QString &interface) char *stringdata = new char[name.length() + 1]; stringdata[name.length()] = '\0'; - + d.data = reinterpret_cast(header); d.relatedMetaObjects = 0; d.static_metacall = 0; @@ -615,7 +615,7 @@ QDBusMetaObject *QDBusMetaObject::createMetaObject(const QString &interface, con if (we) return we; // still nothing? - + if (parsed.isEmpty()) { // object didn't return introspection we = new QDBusMetaObject; @@ -627,7 +627,7 @@ QDBusMetaObject *QDBusMetaObject::createMetaObject(const QString &interface, con // merge all interfaces it = parsed.constBegin(); QDBusIntrospection::Interface merged = *it.value().constData(); - + for (++it; it != end; ++it) { merged.annotations.unite(it.value()->annotations); merged.methods.unite(it.value()->methods); -- cgit v1.2.3