diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-05-18 20:00:23 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-23 23:30:03 +0200 |
commit | 6d65b2cc8c5d86d2351e27c158e3b18519e1fcb5 (patch) | |
tree | 81a34f7f477a0ab4cb0f8b4f26d5411163e31f49 /examples/widgets/itemviews/simpledommodel/dommodel.cpp | |
parent | e44f1dabe44f4979da5da7d5d50395883f3de684 (diff) |
Use QStringList::join(QChar) overload where applicable [examples]
This is an automated change performing the following replacements:
join\("(.)"\) -> join('\1')
join\(QLatin1String\("(.)"\)\) -> join(QLatin1Char('\1'))
join\(QStringLiteral\("(.)"\)\) -> join(QLatin1Char('\1'))
Change-Id: I1d0c9782cc1522d937b930531720e32d4c8f7ce8
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'examples/widgets/itemviews/simpledommodel/dommodel.cpp')
-rw-r--r-- | examples/widgets/itemviews/simpledommodel/dommodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/itemviews/simpledommodel/dommodel.cpp b/examples/widgets/itemviews/simpledommodel/dommodel.cpp index 2d1b9c9475..c47e733f78 100644 --- a/examples/widgets/itemviews/simpledommodel/dommodel.cpp +++ b/examples/widgets/itemviews/simpledommodel/dommodel.cpp @@ -91,9 +91,9 @@ QVariant DomModel::data(const QModelIndex &index, int role) const attributes << attribute.nodeName() + "=\"" +attribute.nodeValue() + "\""; } - return attributes.join(" "); + return attributes.join(' '); case 2: - return node.nodeValue().split("\n").join(" "); + return node.nodeValue().split("\n").join(' '); default: return QVariant(); } |